dotfiles/pinentry.sh

9 lines
277 B
Bash
Executable file

#!/bin/sh
if [ -x /usr/local/MacGPG2/libexec/pinentry-mac.app/Contents/MacOS/pinentry-mac ]; then
export PINENTRY_BINARY="/usr/local/MacGPG2/libexec/pinentry-mac.app/Contents/MacOS/pinentry-mac"
else
export PINENTRY_BINARY="/usr/bin/pinentry"
fi
exec $PINENTRY_BINARY "$@"