summaryrefslogtreecommitdiffstats
path: root/gpg-agent.sh
diff options
context:
space:
mode:
Diffstat (limited to 'gpg-agent.sh')
-rwxr-xr-xgpg-agent.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/gpg-agent.sh b/gpg-agent.sh
index 3e9a4b5..c050cfb 100755
--- a/gpg-agent.sh
+++ b/gpg-agent.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
#----------------------------------------------------
# Version: 0.1.0
# Author: Florian "Bluewind" Pritz <f-p@gmx.at>
@@ -11,6 +11,7 @@
# starting multiple agents
#----------------------------------------------------
initgpg(){
+ [[ -z $XDG_CONFIG_HOME ]] && $XDG_CONFIG_HOME="$HOME/.config"
[ -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