From eb9fc837e97d4be9275a6ec07ebcab1a660bbcd8 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 22 Dec 2011 16:47:45 -0200 Subject: Abort recryption on error --- share/keyringer/recrypt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'share') 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 -- cgit v1.2.3