Skip to contentSkip to conversation

master - fsadm: restore no answer

PATCH Zdenek Kabelac 1 participant 1 message Jun 19, 2017

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=1c212b8a43750ea48b9e96da75c1349682c81454
Commit:        1c212b8a43750ea48b9e96da75c1349682c81454
Parent:        915d20d0e64e8bf7a91f01c21cb8c30428ddb1e1
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Mon Jun 19 12:37:40 2017 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Mon Jun 19 12:40:03 2017 +0200

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 files changed, 1 insertions(+), 0 deletions(-)
scripts/fsadm.sh +1 -0
index ea14efe..adf9b55 100755
@@ -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 ;;