From: rysiek Date: Fri, 3 Nov 2017 12:39:55 +0000 (-0200) Subject: teardown: more unambiguous info on confirmation; added information when teardown... X-Git-Tag: 0.5.2~5 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=89dd8486d3c525dfaf5239938fc4358915e3c2e6;p=keyringer.git teardown: more unambiguous info on confirmation; added information when teardown cancelled --- 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