Fixed gpg-agent not starting sometimes

This commit is contained in:
斟酌 鵬兄 2022-08-10 13:32:58 +08:00
parent 177913a954
commit 139cf98a2b

View File

@ -68,7 +68,8 @@ if ! shopt -oq posix; then
fi
fi
if [ -x "/usr/bin/gpg-agent" ]; then
which gpg-agent 2>&1 > /dev/null
if [ $? -eq 0 ]; then
GPG_ENV="$HOME/.gnupg/environment"
function __start_agent {