diff --git a/misc/alpine-install.func b/misc/alpine-install.func index 9dd3548d5d1..55cadeac169 100644 --- a/misc/alpine-install.func +++ b/misc/alpine-install.func @@ -126,7 +126,7 @@ network_check() { fi if [[ $ipv4_connected == false ]]; then - read -r -p "No Internet detected, would you like to continue anyway? " prompt + read -r -p "No Internet detected, would you like to continue anyway? " prompt /dev/null; do :; done echo "" msg_error "Could not read your response (stdin error) - keeping container ${CTID} for safety." msg_error "Remove it manually if not needed: pct destroy ${CTID}" diff --git a/misc/core.func b/misc/core.func index 383938e428e..e09a07d8385 100644 --- a/misc/core.func +++ b/misc/core.func @@ -754,7 +754,7 @@ msg_info() { # Pause mode: Wait for Enter after each step if [[ "${DEV_MODE_PAUSE:-false}" == "true" ]]; then echo -en "\n${YWB}[PAUSE]${CL} Press Enter to continue..." >&2 - read -r + read -r &2 - read -r + read -r &2 - if read -t "$timeout" -r response; then + if read -t "$timeout" -r response &2 - if read -t "$timeout" -r response; then + if read -t "$timeout" -r response &2 fi @@ -1507,7 +1507,7 @@ prompt_select() { echo -en "${YW}Select [1-${num_options}] (auto-select ${default} in ${timeout}s): ${CL}" >&2 local response - if read -t "$timeout" -r response; then + if read -t "$timeout" -r response &2 - if read -t "$timeout" -rs response; then + if read -t "$timeout" -rs response &2 # Newline after hidden input if [[ -n "$response" ]]; then # Validate minimum length diff --git a/misc/error_handler.func b/misc/error_handler.func index 0b1b9e0181f..ed972de9f74 100644 --- a/misc/error_handler.func +++ b/misc/error_handler.func @@ -499,7 +499,7 @@ error_handler() { local response="" local read_rc - read -t 60 -r response + read -t 60 -r response /dev/null; do :; done echo "" if declare -f msg_error >/dev/null 2>&1; then msg_error "Could not read your response (stdin error) - keeping container ${CTID} for safety." diff --git a/misc/install.func b/misc/install.func index 922f24993bf..07cd2b30f85 100644 --- a/misc/install.func +++ b/misc/install.func @@ -201,7 +201,7 @@ network_check() { # If both IPv4 and IPv6 checks fail, prompt the user if [[ $ipv4_connected == false && $ipv6_connected == false ]]; then - read -r -p "No Internet detected, would you like to continue anyway? " prompt + read -r -p "No Internet detected, would you like to continue anyway? " prompt (auto-no in 60s): " reply; then + if read -r -t 60 -p "${TAB3}Update ${name} (${image}) via Compose? (auto-no in 60s): " reply (auto-no in 60s): " reply; then + if read -r -t 60 -p "${TAB3}Pull new image for ${name} (${image})? (auto-no in 60s): " reply