diff options
author | Florian Pritz <bluewind@xssn.at> | 2009-08-11 19:37:53 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xssn.at> | 2009-08-11 19:37:53 +0200 |
commit | 477c9e24a2d464f37c5eee90efd58682d9ceb02c (patch) | |
tree | dfa85ae57da5f6d441cba61654af310719e5676c /gpg-agent.sh | |
parent | eeb46899eb59385f7084ef1dbc6a562823d9c931 (diff) | |
download | bin-477c9e24a2d464f37c5eee90efd58682d9ceb02c.tar.gz bin-477c9e24a2d464f37c5eee90efd58682d9ceb02c.tar.xz |
fix unset $XDG_CONFIG_HOME
Diffstat (limited to 'gpg-agent.sh')
-rwxr-xr-x | gpg-agent.sh | 3 |
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 |