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 {
|
function yesno {
|
||||||
unset DISCARD_ME
|
unset DISCARD_ME
|
||||||
while [ -z "$DISCARD_ME" ]; do
|
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
|
case "$DISCARD_ME" in
|
||||||
y)
|
y)
|
||||||
# add a line break
|
# add a line break
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue