summaryrefslogtreecommitdiff
path: root/lib/keyringer/functions
diff options
context:
space:
mode:
Diffstat (limited to 'lib/keyringer/functions')
-rw-r--r--lib/keyringer/functions15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/keyringer/functions b/lib/keyringer/functions
index 22f16f8..7545a52 100644
--- a/lib/keyringer/functions
+++ b/lib/keyringer/functions
@@ -156,3 +156,18 @@ function keyringer_git_ignore {
fi
fi
}
+
+# Set needed environment variables.
+function keyringer_set_env {
+ if [ -z "$1" ]; then
+ echo "Error: missing arguments for keyringer_set_env"
+ exit 1
+ fi
+
+ ACTIONS="`dirname $0`"
+ BASENAME="`basename $0`"
+ BASEDIR="$1"
+ KEYDIR="$BASEDIR/keys"
+ RECIPIENTS="$BASEDIR/config/recipients"
+ OPTIONS="$BASEDIR/config/options"
+}