summaryrefslogtreecommitdiffstats
path: root/gpg-agent.sh
diff options
context:
space:
mode:
Diffstat (limited to 'gpg-agent.sh')
-rwxr-xr-xgpg-agent.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/gpg-agent.sh b/gpg-agent.sh
index e82f5c0..56794e9 100755
--- a/gpg-agent.sh
+++ b/gpg-agent.sh
@@ -1,4 +1,18 @@
#!/bin/sh
+#----------------------------------------------------
+# File: gpg-agent.sh
+# Version: 0.1.0
+# Author: Florian "Bluewind" Pritz <f-p@gmx.at>
+#
+# Copyright (C) 2008-2009 Florian Pritz
+#
+# Licensed under GNU General Public License v3
+# (see COPYING for full license text)
+#
+#----------------------------------------------------
+# make working with the agent easier and prevent
+# starting multiple agents
+#----------------------------------------------------
initgpg(){
envfile="${HOME}/.gpginfo"
if test -f ${envfile} && kill -0 $(cut -d: -f 2 ${envfile} | head -n 1) 2>/dev/null; then