diff options
author | rysiek <rysiek@example.org> | 2017-11-03 10:39:55 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-11-03 10:39:55 -0200 |
commit | 89dd8486d3c525dfaf5239938fc4358915e3c2e6 (patch) | |
tree | 5b06af4fb42b224c33aa2b8d7e9545ee34592a5c /lib | |
parent | 9363e1fa91b23297f13d51139203baf5a0090fc0 (diff) | |
download | keyringer-89dd8486d3c525dfaf5239938fc4358915e3c2e6.tar.gz keyringer-89dd8486d3c525dfaf5239938fc4358915e3c2e6.tar.bz2 |
teardown: more unambiguous info on confirmation; added information when teardown cancelled
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/keyringer/actions/teardown | 3 |
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 |