From 97d12d60f677393b652b24c7f279767e23689df8 Mon Sep 17 00:00:00 2001 From: master3395 Date: Wed, 4 Feb 2026 21:54:23 +0100 Subject: [PATCH] Fix interactive menu when script is piped (curl | bash): redirect stdin from /dev/tty so Force Reinstall and other prompts read from terminal --- cyberpanel.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cyberpanel.sh b/cyberpanel.sh index 54fd8aba4..5c19974fe 100644 --- a/cyberpanel.sh +++ b/cyberpanel.sh @@ -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