aboutsummaryrefslogtreecommitdiff
path: root/lib/keyringer/actions/recrypt
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-12-10 22:43:14 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-12-10 22:43:14 -0200
commitb4bdeafcf666b6f7a6f3f33e9f4cf1fb0a7cebbf (patch)
tree176150694cc6ab6368087d5486554c73ac809451 /lib/keyringer/actions/recrypt
parent7aac0eea6ab0690e040ffe2ed2eab4adde8d5ead (diff)
downloadkeyringer-b4bdeafcf666b6f7a6f3f33e9f4cf1fb0a7cebbf.tar.gz
keyringer-b4bdeafcf666b6f7a6f3f33e9f4cf1fb0a7cebbf.tar.bz2
Comments
Diffstat (limited to 'lib/keyringer/actions/recrypt')
-rwxr-xr-xlib/keyringer/actions/recrypt2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/keyringer/actions/recrypt b/lib/keyringer/actions/recrypt
index 014fef7..696399b 100755
--- a/lib/keyringer/actions/recrypt
+++ b/lib/keyringer/actions/recrypt
@@ -7,6 +7,7 @@
LIB="`dirname $0`/../functions"
source "$LIB" || exit 1
+# Recrypt a single secret
function keyringer_recrypt {
# Get file
keyringer_get_file "$1"
@@ -34,6 +35,7 @@ function keyringer_recrypt {
echo "$recrypted" > "$KEYDIR/$FILE"
}
+# Syntax check and dispatcher
if [ ! -z "$2" ]; then
keyringer_recrypt $2
else