aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-12-22 16:47:45 -0200
committerSilvio Rhatto <rhatto@riseup.net>2011-12-22 16:47:45 -0200
commiteb9fc837e97d4be9275a6ec07ebcab1a660bbcd8 (patch)
tree07b56a712c4b48c55daad4aef1af49730941a7ad /share
parent21f45aae3dd8d1a2aecacb3a7307e03b26bfae70 (diff)
downloadkeyringer-eb9fc837e97d4be9275a6ec07ebcab1a660bbcd8.tar.gz
keyringer-eb9fc837e97d4be9275a6ec07ebcab1a660bbcd8.tar.bz2
Abort recryption on error
Diffstat (limited to 'share')
-rwxr-xr-xshare/keyringer/recrypt4
1 files changed, 4 insertions, 0 deletions
diff --git a/share/keyringer/recrypt b/share/keyringer/recrypt
index a8f5267..438039d 100755
--- a/share/keyringer/recrypt
+++ b/share/keyringer/recrypt
@@ -13,6 +13,10 @@ function keyringer_recrypt {
# Recrypt
$GPG --use-agent -d "$KEYDIR/$FILE" | $GPG --use-agent --armor -e -s $(keyringer_recipients "$RECIPIENTS") > "$KEYDIR/$FILE"
+
+ if [ "$?" != "0" ]; then
+ exit 1
+ fi
}
if [ ! -z "$2" ]; then