diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2023-03-18 10:52:41 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2023-03-18 10:52:41 -0300 |
commit | 409a111fca74bf2712e29ca5811b19d431efb54a (patch) | |
tree | 7d90c22987e2b35f49dee9529d87e05c4db0fba7 /lib/keyringer/actions/edit | |
parent | 0ccb3e0511f492eb5fb5dfb9729489c6fb9fa0ab (diff) | |
parent | 29f9851345cddee59baec92ac62822bb9f540b38 (diff) | |
download | keyringer-409a111fca74bf2712e29ca5811b19d431efb54a.tar.gz keyringer-409a111fca74bf2712e29ca5811b19d431efb54a.tar.bz2 |
New upstream version 0.5.9upstream_keyringer_0.5.9upstream
Diffstat (limited to 'lib/keyringer/actions/edit')
-rwxr-xr-x | lib/keyringer/actions/edit | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/keyringer/actions/edit b/lib/keyringer/actions/edit index a480eea..ae4f4b0 100755 --- a/lib/keyringer/actions/edit +++ b/lib/keyringer/actions/edit @@ -24,6 +24,12 @@ keyringer_set_tmpfile $BASENAME.$EXTENSION # Decrypt the information to the file $GPG --yes -o "$TMPWORK" --use-agent -d "$KEYDIR/$FILE" +# Check whether decryption suceeded +if [ "$?" != "0" ]; then + echo "Error decrypting $FILE, aborting" + exit 1 +fi + # Action check if [ "$BASENAME" == "edit" ]; then APP="$EDITOR" |