opt/system-image: fix an issue where the prompt might not be displayed sometimes
parent
30beeec37a
commit
c4881f49ff
|
|
@ -19,7 +19,8 @@ function echo_tty {
|
|||
function yesno {
|
||||
unset DISCARD_ME
|
||||
while [ -z "$DISCARD_ME" ]; do
|
||||
read -p "[y/n] " -n1 DISCARD_ME < $TTY_OR_CONSOLE > $TTY_OR_CONSOLE
|
||||
echo_tty -n "[y/n] "
|
||||
read -n1 DISCARD_ME < $TTY_OR_CONSOLE > $TTY_OR_CONSOLE
|
||||
case "$DISCARD_ME" in
|
||||
y)
|
||||
# add a line break
|
||||
|
|
|
|||
Loading…
Reference in New Issue