From 10400e5c56999239ffb85300cdf660e8732decb8 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Sat, 28 Feb 2026 08:30:25 +0100 Subject: [PATCH] fix: read from /dev/tty in all interactive prompts When running via bash -c \\\, stdin is consumed by curl so read gets an I/O error. All interactive read calls in build.func now explicitly read from /dev/tty (recovery menu, GPU selection, version picker, LXC upgrade prompt, container removal, resource/storage checks). --- misc/build.func | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/misc/build.func b/misc/build.func index 6426eddaa..9ccb0ad54 100644 --- a/misc/build.func +++ b/misc/build.func @@ -3132,7 +3132,7 @@ check_container_resources() { msg_warn "Under-provisioned: Required ${var_cpu} CPU/${var_ram}MB RAM, Current ${current_cpu} CPU/${current_ram}MB RAM" echo -e "${YWB}Please ensure that the ${APP} LXC is configured with at least ${var_cpu} vCPU and ${var_ram} MB RAM for the build process.${CL}\n" echo -ne "${INFO}${HOLD} May cause data loss! ${INFO} Continue update with under-provisioned LXC? " - read -r prompt + read -r prompt 80)); then msg_warn "Storage is dangerously low (${usage}% used on /boot)" echo -ne "Continue anyway? " - read -r prompt + read -r prompt /dev/null || true pct destroy "$CTID" &>/dev/null || true msg_ok "Container ${CTID} removed" @@ -4369,7 +4369,7 @@ EOF' echo "" echo -en "${YW}Select option [1-${max_option}] (default: 1, auto-remove in 60s): ${CL}" - if read -t 60 -r response; then + if read -t 60 -r response " prompt; then + if ! read -rp "Remove this Container? " prompt