misc: read all interactive prompts from /dev/tty, drain leftover input on read failure (#16235)

This commit is contained in:
CanbiZ (MickLesk)
2026-08-03 16:57:55 +02:00
committed by GitHub
parent 9debedc386
commit e21a11c190
6 changed files with 21 additions and 19 deletions
+1 -1
View File
@@ -126,7 +126,7 @@ network_check() {
fi
if [[ $ipv4_connected == false ]]; then
read -r -p "No Internet detected, would you like to continue anyway? <y/N> " prompt
read -r -p "No Internet detected, would you like to continue anyway? <y/N> " prompt </dev/tty
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
echo -e "${INFO}${RD}Expect Issues Without Internet${CL}"
else