diff --git a/install.sh b/install.sh index 6a96da0..16e9c32 100755 --- a/install.sh +++ b/install.sh @@ -60,11 +60,13 @@ else if [ -z "$PUBLIC_URL" ]; then DEFAULT_URL="http://localhost" [ "$NGINX_PORT" != "80" ] && DEFAULT_URL="http://localhost:$NGINX_PORT" - # Under `curl | bash` stdin is the script pipe — prompt on the - # controlling terminal instead. No tty (CI/cron) → default silently. - if exec 9/dev/null; then - read -rp "URL where you'll open Primora (domain or IP, e.g. https://primora.example.com) [$DEFAULT_URL]: " PUBLIC_URL <&9 || true - exec 9>&- + # Under `curl | bash` stdin is the script pipe — ask on the controlling + # terminal instead. `true /dev/null` here — exec redirections persist and would + # silence stderr, including the read prompt below, for the whole script. + if true 2>/dev/null