]> gitweb.fluxo.info Git - keyringer.git/commitdiff
Abort recryption on error
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 22 Dec 2011 18:47:45 +0000 (16:47 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 22 Dec 2011 18:47:45 +0000 (16:47 -0200)
share/keyringer/recrypt

index a8f52679c05b15a7d410ddee260d869e5b2ee939..438039d2e7c5c897d390e3a777494de1750f357b 100755 (executable)
@@ -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