Skip to content

Instantly share code, notes, and snippets.

@aegiap
Created April 9, 2016 18:12
Show Gist options
  • Save aegiap/5b99da4c6cc9b7f03424defe3d3cbf66 to your computer and use it in GitHub Desktop.
Save aegiap/5b99da4c6cc9b7f03424defe3d3cbf66 to your computer and use it in GitHub Desktop.
keychain patch for gnupg agent
--- /usr/bin/keychain 2016-04-09 20:08:08.770147928 +0200
+++ /usr/bin/keychain.new 2016-04-09 20:07:57.778106005 +0200
@@ -1622,7 +1622,7 @@
set +f # re-enable globbing
for k in "$@"; do
- echo | env LC_ALL="$pinentry_lc_all" \
+ echo | env LC_ALL="$pinentry_lc_all" GPG_AGENT_INFO="$inherit_gpg_agent_info" \
gpg --no-options --use-agent --no-tty --sign --local-user "$k" -o-
[ $? != 0 ] && tryagain=true
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment