From e84a3b040ad7c4d20af28bd4dbce8ef456aaaefe Mon Sep 17 00:00:00 2001 From: NicoHood Date: Fri, 29 Jan 2021 23:22:53 +0100 Subject: [PATCH] Fix git config issue --- gpgit.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gpgit.sh b/gpgit.sh index 569518a..bc252ea 100755 --- a/gpgit.sh +++ b/gpgit.sh @@ -360,13 +360,13 @@ MESSAGE="${MESSAGE:-"Release created with GPGit ${VERSION}"$'\nhttps://github.co KEYSERVER="${KEYSERVER:-"$(git config gpgit.keyserver || true)"}" KEYSERVER="${KEYSERVER:-"hkps://keyserver.ubuntu.com"}" if [[ "${#COMPRESSION[@]}" -eq 0 ]]; then - IFS=" " read -r -a COMPRESSION <<< "$(git config gpgit.compression)" + IFS=" " read -r -a COMPRESSION <<< "$(git config gpgit.compression || true)" if [[ "${#COMPRESSION[@]}" -eq 0 ]]; then COMPRESSION=("xz") fi fi if [[ "${#HASH[@]}" -eq 0 ]]; then - IFS=" " read -r -a HASH <<< "$(git config gpgit.hash)" + IFS=" " read -r -a HASH <<< "$(git config gpgit.hash || true)" if [[ "${#HASH[@]}" -eq 0 ]]; then HASH=("sha512") fi