Compare commits

..

1 Commits

Author SHA1 Message Date
MickLesk 2b980dce59 Read prompt input directly from /dev/tty
Update the interactive `read` call in `misc/build.func` to read from `/dev/tty` instead of standard input. This ensures the timeout prompt still accepts user input even when stdin is redirected or consumed by another stream.
2026-07-28 16:39:53 +02:00
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -21,6 +21,8 @@ color
catch_errors
function update_script() {
header_info "$APP"
msg_info "Updating Alpine OS"
$STD apk -U upgrade
msg_ok "System updated"
@@ -28,8 +30,10 @@ function update_script() {
msg_info "Pulling latest NPMplus container image"
cd /opt
$STD docker compose pull
msg_info "Recreating container"
$STD docker compose up -d
msg_ok "Updated NPMplus container"
msg_ok "Updated successfully!"
exit
}
+1 -1
View File
@@ -5337,7 +5337,7 @@ EOF
local response=""
local read_rc
read -t 60 -r response
read -t 60 -r response </dev/tty
read_rc=$?
if [[ $read_rc -eq 0 ]]; then
case "${response:-1}" in