mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-02-16 19:46:48 +01:00
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:
@@ -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
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user