mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-04-28 11:50:06 +00:00
core: read from /dev/tty in all interactive prompts | fix empty or cropped logs due build process (#12406)
This commit is contained in:
parent
16ae89cd88
commit
fddc47064d
2 changed files with 124 additions and 76 deletions
|
|
@ -286,7 +286,7 @@ error_handler() {
|
|||
echo -en "${YW}Remove broken container ${CTID}? (Y/n) [auto-remove in 60s]: ${CL}"
|
||||
fi
|
||||
|
||||
if read -t 60 -r response; then
|
||||
if read -t 60 -r response </dev/tty; then
|
||||
if [[ -z "$response" || "$response" =~ ^[Yy]$ ]]; then
|
||||
echo ""
|
||||
if declare -f msg_info >/dev/null 2>&1; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue