Skip to content

Commit

Permalink
fix(plugins/git): variable/secrets fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dalisoft committed Feb 21, 2024
1 parent 40bec24 commit ba682b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/git.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ prepare() {
git config --global commit.gpgsign true
git config --global user.signingkey "$GPG_KEY_ID"
fi
if [[ -n "$GPG_KEY_ID" && -n "$GPG_KEY" && -n "$GPG_PASSPHARE" ]]; then
if [[ -n "$GPG_KEY_ID" && -n "$GPG_KEY" && -n "$GPG_KEY_PASSPHRASE" ]]; then
echo "$GPG_KEY" | base64 --decode | gpg --batch --import
rm -rf "$TEMP_GPG_FILE"
echo '#!/bin/bash' >>"$TEMP_GPG_FILE"
Expand All @@ -31,7 +31,7 @@ cleanup() {
git config --global --unset commit.gpgsign true
git config --global --unset user.signingkey "$GPG_KEY_ID"
fi
if [[ -n "$GPG_KEY_ID" && -n "$GPG_KEY" && -n "$GPG_PASSPHARE" ]]; then
if [[ -n "$GPG_KEY_ID" && -n "$GPG_KEY" && -n "$GPG_KEY_PASSPHRASE" ]]; then
rm -rf "$TEMP_GPG_FILE"
git config --global --unset gpg.program
fi
Expand Down

0 comments on commit ba682b4

Please sign in to comment.