summaryrefslogtreecommitdiff
path: root/lib/keyringer/functions
diff options
context:
space:
mode:
Diffstat (limited to 'lib/keyringer/functions')
-rw-r--r--lib/keyringer/functions6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/keyringer/functions b/lib/keyringer/functions
index 11d1b86..58f7ad1 100644
--- a/lib/keyringer/functions
+++ b/lib/keyringer/functions
@@ -204,6 +204,12 @@ function keyringer_set_env {
exit 1
fi
+ if [ ! -z "$KEYID" ]; then
+ GPG="gpg -u $KEYID"
+ else
+ GPG="gpg"
+ fi
+
# Check recipients file
keyringer_check_recipients $SUBCOMMAND