From 1c212b8a43750ea48b9e96da75c1349682c81454 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 19 Jun 2017 12:37:40 +0200 Subject: [PATCH] fsadm: restore no answer Commit 1fe4f80e45a6bfcceed5aaab97fc0e27dfcf2b88 in current version introduced regression for a terminal user, as he could not enter 'n' as answer. Add missing break for this case (No whats_new). --- scripts/fsadm.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/fsadm.sh b/scripts/fsadm.sh index ea14efed2..adf9b555d 100755 --- a/scripts/fsadm.sh +++ b/scripts/fsadm.sh @@ -402,6 +402,7 @@ yes_no() { while read -r -s -n 1 ANS ; do case "$ANS" in "y" | "Y" ) echo y ; return 0 ;; + "n" | "N") break ;; "" ) if [ -t 1 ] ; then echo y ; return 0 fi ;;