Skip to content

Commit

Permalink
fix(plugins): improve logging for gpg
Browse files Browse the repository at this point in the history
  • Loading branch information
dalisoft committed Feb 21, 2024
1 parent 8156d6b commit 0022d99
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 @@ -10,7 +10,7 @@ prepare() {
if [[ -n "$GIT_USERNAME" && -n "$GIT_EMAIL" ]]; then
git config user.email "$GIT_EMAIL"
git config user.name "$GIT_USERNAME"
log_verbose "Git username and Git e-mail set"
log_verbose "Git username [$GIT_USERNAME] and Git e-mail [$GIT_EMAIL] set"
fi
if [[ -n "$GPG_KEY" ]]; then
echo "$GPG_KEY" | base64 --decode | gpg --batch --import
Expand All @@ -20,7 +20,7 @@ prepare() {
git config user.signingkey "$GPG_KEY_ID"
git config tag.forceSignAnnotated true
git config gpg.program gpg
log_verbose "Git GPG sign set"
log_verbose "Git GPG sign and key ID [$GPG_KEY_ID] are set"
fi
if [[ -n "$GPG_PASSPHRASE" ]]; then
echo "allow-loopback-pinentry" >>~/.gnupg/gpg-agent.conf
Expand Down

0 comments on commit 0022d99

Please sign in to comment.