]> gitweb.fluxo.info Git - keyringer.git/commitdiff
teardown: more unambiguous info on confirmation; added information when teardown...
authorrysiek <rysiek@example.org>
Fri, 3 Nov 2017 12:39:55 +0000 (10:39 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 3 Nov 2017 12:39:55 +0000 (10:39 -0200)
lib/keyringer/actions/teardown

index 2e8725b001645f338975b421684a5f0352559c22..55de3d6e3621dd760534df66d229d6bc805e6ac8 100755 (executable)
@@ -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