summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorrysiek <rysiek@example.org>2017-11-03 10:39:55 -0200
committerSilvio Rhatto <rhatto@riseup.net>2017-11-03 10:39:55 -0200
commit89dd8486d3c525dfaf5239938fc4358915e3c2e6 (patch)
tree5b06af4fb42b224c33aa2b8d7e9545ee34592a5c /lib
parent9363e1fa91b23297f13d51139203baf5a0090fc0 (diff)
downloadkeyringer-89dd8486d3c525dfaf5239938fc4358915e3c2e6.tar.gz
keyringer-89dd8486d3c525dfaf5239938fc4358915e3c2e6.tar.bz2
teardown: more unambiguous info on confirmation; added information when teardown cancelled
Diffstat (limited to 'lib')
-rwxr-xr-xlib/keyringer/actions/teardown3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/keyringer/actions/teardown b/lib/keyringer/actions/teardown
index 2e8725b..55de3d6 100755
--- a/lib/keyringer/actions/teardown
+++ b/lib/keyringer/actions/teardown
@@ -16,8 +16,9 @@ if [ -z "$CONFIRM" ] || [ "$CONFIRM" != "-y" ]; then
echo "WARNING: This will irrevocably destroy $KEYDIR"
echo "WARNING: the action cannot be undone!"
- read -rep "Are you sure to WIPE keyring $KEYRING (type YES to confirm)? " key
+ read -rep "Are you sure to WIPE keyring $KEYRING (type uppercase YES to confirm)? " key
if [ "$key" != "YES" ]; then
+ echo "CANCELLED!"
exit 1
fi
fi