opt/system-image: fix an issue where the prompt might not be displayed sometimes

master
BodgeMaster 2026-03-27 02:39:05 +01:00
parent 30beeec37a
commit c4881f49ff
1 changed files with 2 additions and 1 deletions

View File

@ -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