summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rwxr-xr-xshare/keyringer/encrypt8
1 files changed, 1 insertions, 7 deletions
diff --git a/share/keyringer/encrypt b/share/keyringer/encrypt
index 26b2710..b6d594c 100755
--- a/share/keyringer/encrypt
+++ b/share/keyringer/encrypt
@@ -8,13 +8,7 @@ LIB="`dirname $0`/../../lib/keyringer/functions"
source $LIB || exit 1
# Aditional parameters
-FILE="`keyringer_filename $2`"
-
-# Setup
-if [ -z "$FILE" ]; then
- echo "Usage: keyringer <keyring> `basename $0` <file>"
- exit 1
-fi
+FILE="`keyringer_get_new_file $2`"
# Encrypt
mkdir -p $KEYDIR/`dirname $FILE`