Fix interactive menu when script is piped (curl | bash): redirect stdin from /dev/tty so Force Reinstall and other prompts read from terminal

This commit is contained in:
master3395
2026-02-04 21:54:23 +01:00
parent db484ce0d0
commit 97d12d60f6

View File

@@ -2839,7 +2839,10 @@ main() {
print_status "SUCCESS: Installation completed successfully!"
else
# Run interactive mode
# Run interactive mode - ensure stdin is the terminal for prompts (e.g. when script was piped from curl)
if [ ! -t 0 ]; then
exec 0</dev/tty
fi
show_main_menu
fi
;;