From 89dd8486d3c525dfaf5239938fc4358915e3c2e6 Mon Sep 17 00:00:00 2001 From: rysiek Date: Fri, 3 Nov 2017 10:39:55 -0200 Subject: teardown: more unambiguous info on confirmation; added information when teardown cancelled --- lib/keyringer/actions/teardown | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3