mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-07-29 09:12:56 +02:00
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.
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user