summaryrefslogtreecommitdiffstats
path: root/gpg-agent.sh
diff options
context:
space:
mode:
Diffstat (limited to 'gpg-agent.sh')
-rwxr-xr-xgpg-agent.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpg-agent.sh b/gpg-agent.sh
index 85a15df..576dc49 100755
--- a/gpg-agent.sh
+++ b/gpg-agent.sh
@@ -13,7 +13,7 @@
# starting multiple agents
#----------------------------------------------------
initgpg(){
- [ ! -f "XDG_CONFIG_HOME/disable-gpg-agent" ] && return 0
+ [ -f "$XDG_CONFIG_HOME/disable-gpg-agent" ] && return 0
envfile="${HOME}/.gpginfo"
if test -f ${envfile} && kill -0 $(cut -d: -f 2 ${envfile} | head -n 1) 2>/dev/null; then
eval $(cat ${envfile})