From d979597361317e2d8fb94c4079aa38f2f51647ce Mon Sep 17 00:00:00 2001 From: chengyongru Date: Tue, 30 Jun 2026 10:14:52 +0800 Subject: [PATCH] fix(install): skip wizard without an interactive terminal --- scripts/install.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index 122ecc64..b83b9969 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -269,7 +269,15 @@ if [ "${NANOBOT_SKIP_WIZARD:-}" = "1" ]; then exit 0 fi -info "Starting setup wizard..." -run_nanobot onboard --wizard +if [ -t 0 ]; then + info "Starting setup wizard..." + run_nanobot onboard --wizard +elif : 2>/dev/null < /dev/tty; then + info "Starting setup wizard..." + run_nanobot onboard --wizard < /dev/tty +else + info "Skipping setup wizard because no interactive terminal is available." + info "Run this later: $(nanobot_try_command) onboard --wizard" +fi info "Done. Try: $(nanobot_try_command) agent -m \"Hello!\""