summaryrefslogtreecommitdiff
path: root/gpg/remove-keys.sh
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2020-05-04 10:19:57 +0200
committerChristian Pointner <equinox@spreadspace.org>2020-05-04 10:19:57 +0200
commit4bee47b27c247ade1da0dad1e103c90fe72101cd (patch)
tree25ff0e72bc7630aa00699ed5d11ff07b1acfdd15 /gpg/remove-keys.sh
parentch-equinox-ws: add games (diff)
gpg: minor cleanup
Diffstat (limited to 'gpg/remove-keys.sh')
-rwxr-xr-xgpg/remove-keys.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/gpg/remove-keys.sh b/gpg/remove-keys.sh
index d5fd93c3..51d8c079 100755
--- a/gpg/remove-keys.sh
+++ b/gpg/remove-keys.sh
@@ -27,7 +27,7 @@ fi
"${BASH_SOURCE%/*}/gpg2.sh" $NAME --delete-keys $@
if [ $? -ne 0 ]; then
- echo -e "\nERROR: removing key(s) failed. Please revert any changes of the file gpg/vault-keyring-$NAME.gpg."
+ echo -e "\nERROR: removing key(s) failed. Please revert any changes of the file ${0%/*}/vault-keyring-$NAME.gpg."
exit 1
fi
@@ -35,8 +35,8 @@ echo ""
"${BASH_SOURCE%/*}/get-vault-pass-$NAME" | "${BASH_SOURCE%/*}/set-vault-pass.sh" "$NAME"
if [ $? -ne 0 ]; then
echo -e "\nERROR: reencrypting vault password file failed!"
- echo " You might want to revert any changes on gpg/vault-pass-$NAME.gpg and gpg/vault-keyring-$NAME.gpg!!"
+ echo " You might want to revert any changes on ${0%/*}/vault-pass-$NAME.gpg and ${0%/*}/vault-keyring-$NAME.gpg!!"
exit 1
fi
echo "Successfully reencrypted vault password file!"
-echo " Don't forget to commit the changes in gpg/vault-pass-$NAME.gpg and gpg/vault-keyring-$NAME.gpg."
+echo " Don't forget to commit the changes in ${0%/*}/vault-pass-$NAME.gpg and ${0%/*}/vault-keyring-$NAME.gpg."