Skip to content

Commit

Permalink
Show only stderr for gpg
Browse files Browse the repository at this point in the history
  • Loading branch information
apolopena committed Jan 22, 2022
1 parent 6d89aec commit 3614991
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .gp/bash/before-tasks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ log_silent "try: git a or: git aliases to see what is available."
if [[ -n $GNUPG_KEY && -n $GNUPG_SIGNING_KEY ]]; then
msg="enabling Git commit signing"
log_silent "GnuPG Private Key env vars found, $msg"
gpg --verbose --batch --import <(echo "$GNUPG_KEY" | base64 -d) &&
echo 'pinentry-mode loopback' >> ~/.gnupg/gpg.conf &&
gpg --verbose --batch --import <(echo "$GNUPG_KEY" | base64 -d) > /dev/null &&
echo 'pinentry-mode loopback' >> ~/.gnupg/gpg.conf > /dev/null &&

This comment has been minimized.

Copy link
@strausmann

strausmann Jan 22, 2022

Contributor

@apolopena

This will destory the gpg function

image

After repeat the command without "> /dev/null" its works again

This comment has been minimized.

Copy link
@strausmann
git config --global user.signingkey "$GNUPG_SIGNING_KEY" &&
git config commit.gpgsign true
ec=$?
Expand Down

1 comment on commit 3614991

@strausmann
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Please sign in to comment.