Skip to content

Commit

Permalink
Fix git config issue
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoHood committed Jan 29, 2021
1 parent c1070fb commit e84a3b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gpgit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e84a3b0

Please sign in to comment.