silence error message before agent is installed
This commit is contained in:
parent
e0bd35a838
commit
da57864f88
|
@ -9,13 +9,15 @@ ssh-add -L 2>/dev/null >/dev/null || rm -f $HOME/.gpg-agent-info
|
||||||
|
|
||||||
# if no info file, start up potentially-new, working agent
|
# if no info file, start up potentially-new, working agent
|
||||||
if [[ ! -e $HOME/.gpg-agent-info ]]; then
|
if [[ ! -e $HOME/.gpg-agent-info ]]; then
|
||||||
gpg-agent \
|
if which gpg-agent 2>&1 >/dev/null ; then
|
||||||
--enable-ssh-support \
|
gpg-agent \
|
||||||
--daemon \
|
--enable-ssh-support \
|
||||||
--write-env-file \
|
--daemon \
|
||||||
--use-standard-socket \
|
--write-env-file \
|
||||||
--pinentry-program $(brew --prefix)/bin/pinentry-mac \
|
--use-standard-socket \
|
||||||
2>&1 >/dev/null
|
--pinentry-program $(brew --prefix)/bin/pinentry-mac \
|
||||||
|
2>&1 >/dev/null
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# load up new agent info
|
# load up new agent info
|
||||||
|
|
Loading…
Reference in New Issue