1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

fsadm: restore no answer

Commit 1fe4f80e45 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).
This commit is contained in:
Zdenek Kabelac 2017-06-19 12:37:40 +02:00
parent 915d20d0e6
commit 1c212b8a43

View File

@ -402,6 +402,7 @@ yes_no() {
while read -r -s -n 1 ANS ; do while read -r -s -n 1 ANS ; do
case "$ANS" in case "$ANS" in
"y" | "Y" ) echo y ; return 0 ;; "y" | "Y" ) echo y ; return 0 ;;
"n" | "N") break ;;
"" ) if [ -t 1 ] ; then "" ) if [ -t 1 ] ; then
echo y ; return 0 echo y ; return 0
fi ;; fi ;;