aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xshare/keyringer/recrypt3
1 files changed, 2 insertions, 1 deletions
diff --git a/share/keyringer/recrypt b/share/keyringer/recrypt
index 9153456..63f7bc6 100755
--- a/share/keyringer/recrypt
+++ b/share/keyringer/recrypt
@@ -23,7 +23,7 @@ function keyringer_recrypt {
fi
# Recrypt
- echo "$decrypted" | $GPG --use-agent --armor -e -s $(keyringer_recipients "$RECIPIENTS_FILE") > "$KEYDIR/$FILE"
+ recrypted="`echo "$decrypted" | $GPG --use-agent --armor -e -s $(keyringer_recipients "$RECIPIENTS_FILE")`"
if [ "$?" != "0" ]; then
echo "Recryption error."
@@ -31,6 +31,7 @@ function keyringer_recrypt {
fi
unset decrypted
+ echo "$recrypted" > "$KEYDIR/$FILE"
}
if [ ! -z "$2" ]; then