1
0
Fork 0

replace gpg-agent check to work on *NIX & *BSD, too

pull/423/head
nasenatmer 12 years ago
parent fbf33bbdcf
commit df00850ed0

@ -33,7 +33,7 @@ function _gpg-agent-start {
# Source GPG agent settings, if applicable. # Source GPG agent settings, if applicable.
if [[ -s "${_gpg_env}" ]]; then if [[ -s "${_gpg_env}" ]]; then
source "${_gpg_env}" > /dev/null source "${_gpg_env}" > /dev/null
ps --no-headers -C 'gpg-agent' || { ps -e | grep $(grep GPG_AGENT_INFO $_gpg_env | cut -d: -f 2) ||
_gpg-agent-start _gpg-agent-start
} }
else else

Loading…
Cancel
Save