diff options
author | Florian Pritz <bluewind@xinu.at> | 2011-06-26 17:54:41 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2011-06-26 17:54:41 +0200 |
commit | 8392ce6483f48bbc739326aa84e48f9d230964c7 (patch) | |
tree | 39dbb7d285b63f351c34d323222bbad89cfd040d | |
parent | cfb210d95bf1cc409884d9f5779e864d4b4de961 (diff) | |
download | bin-8392ce6483f48bbc739326aa84e48f9d230964c7.tar.gz bin-8392ce6483f48bbc739326aa84e48f9d230964c7.tar.xz |
gpg-agent.sh: don't autorun if no display
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rwxr-xr-x | gpg-agent.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gpg-agent.sh b/gpg-agent.sh index 8f5cd7d..cd8a866 100755 --- a/gpg-agent.sh +++ b/gpg-agent.sh @@ -24,4 +24,7 @@ initgpg(){ export SSH_AUTH_SOCK export SSH_AGENT_PID } -initgpg + +if [[ -n $DISPLAY ]]; then + initgpg +fi |