diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2023-03-18 10:52:42 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2023-03-18 10:52:42 -0300 |
commit | b908577db1afb0f7dbadfde59a312d7c8426ffc7 (patch) | |
tree | 89e59df6f5910c4db2687d692cb9c07785dbaf53 /lib/keyringer/actions/edit | |
parent | b3f1a65264465eddc57d93f166655235602dbaa5 (diff) | |
parent | 409a111fca74bf2712e29ca5811b19d431efb54a (diff) | |
download | keyringer-b908577db1afb0f7dbadfde59a312d7c8426ffc7.tar.gz keyringer-b908577db1afb0f7dbadfde59a312d7c8426ffc7.tar.bz2 |
Update upstream source from tag 'upstream_keyringer_0.5.9'
Update to upstream version '0.5.9'
with Debian dir fd6bc86e6ec0d9540ab09c93665331af243f8bfd
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" |