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:
parent
915d20d0e6
commit
1c212b8a43
@ -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 ;;
|
||||
|
Loading…
Reference in New Issue
Block a user