From 477c9e24a2d464f37c5eee90efd58682d9ceb02c Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Tue, 11 Aug 2009 19:37:53 +0200 Subject: fix unset $XDG_CONFIG_HOME --- gpg-agent.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gpg-agent.sh') 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 @@ -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 -- cgit v1.2.3-24-g4f1b