summaryrefslogtreecommitdiffstats
path: root/gpg-agent.sh
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xssn.at>2009-08-11 19:37:53 +0200
committerFlorian Pritz <bluewind@xssn.at>2009-08-11 19:37:53 +0200
commit477c9e24a2d464f37c5eee90efd58682d9ceb02c (patch)
treedfa85ae57da5f6d441cba61654af310719e5676c /gpg-agent.sh
parenteeb46899eb59385f7084ef1dbc6a562823d9c931 (diff)
downloadbin-477c9e24a2d464f37c5eee90efd58682d9ceb02c.tar.gz
bin-477c9e24a2d464f37c5eee90efd58682d9ceb02c.tar.xz
fix unset $XDG_CONFIG_HOME
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