summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2011-06-26 17:54:41 +0200
committerFlorian Pritz <bluewind@xinu.at>2011-06-26 17:54:41 +0200
commit8392ce6483f48bbc739326aa84e48f9d230964c7 (patch)
tree39dbb7d285b63f351c34d323222bbad89cfd040d
parentcfb210d95bf1cc409884d9f5779e864d4b4de961 (diff)
downloadbin-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-xgpg-agent.sh5
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