From 1538be45de27ae937d8c2a04d12d29cb013c9ea2 Mon Sep 17 00:00:00 2001 From: teknium1 Date: Tue, 3 Mar 2026 19:34:05 -0800 Subject: [PATCH] fix: improve gateway setup messaging for non-interactive environments Updated the gateway setup function to provide clearer messaging when no terminal is available, enhancing user understanding of the installation process. This change ensures that users are informed to run 'hermes gateway install' later if the setup is skipped due to terminal unavailability. --- scripts/install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index 69b5f43fc6..5a6f7f736a 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -916,8 +916,8 @@ maybe_start_gateway() { fi fi - if [ "$IS_INTERACTIVE" = false ]; then - log_info "Gateway setup skipped (non-interactive). Run 'hermes gateway install' later." + if ! [ -e /dev/tty ]; then + log_info "Gateway setup skipped (no terminal available). Run 'hermes gateway install' later." return 0 fi