From a490a1bf3e668674760cdda4e46f2e472fc3460c Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 16 Sep 2010 14:23:42 -0300 Subject: Code cleanup --- lib/keyringer/functions | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'lib') 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" +} -- cgit v1.2.3