diff --git a/install.sh b/install.sh index 20a7638..fc487e0 100755 --- a/install.sh +++ b/install.sh @@ -50,6 +50,13 @@ show_progress() { fi } +# --- Reclaim stdin for interactive prompts --- +# When run via `curl ... | bash`, stdin is the pipe. Reopen it from +# the terminal so read prompts (setup wizard, confirmations) work. +if [ ! -t 0 ]; then + exec < /dev/tty +fi + header "WebsiteBox Installer" # --- Check for root/sudo ---