diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2011-12-22 16:47:45 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-12-22 16:47:45 -0200 |
commit | eb9fc837e97d4be9275a6ec07ebcab1a660bbcd8 (patch) | |
tree | 07b56a712c4b48c55daad4aef1af49730941a7ad | |
parent | 21f45aae3dd8d1a2aecacb3a7307e03b26bfae70 (diff) | |
download | keyringer-eb9fc837e97d4be9275a6ec07ebcab1a660bbcd8.tar.gz keyringer-eb9fc837e97d4be9275a6ec07ebcab1a660bbcd8.tar.bz2 |
Abort recryption on error
-rwxr-xr-x | share/keyringer/recrypt | 4 |
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 |