fix: update setup wizard logic to handle terminal availability
Modified the setup wizard to ensure it only skips execution when no terminal is available, improving compatibility with piped installations. Additionally, updated environment variable checks to use bool() for accurate provider configuration detection, addressing potential issues with empty values in .env files.
This commit is contained in:
@@ -848,8 +848,11 @@ run_setup_wizard() {
|
||||
return 0
|
||||
fi
|
||||
|
||||
if [ "$IS_INTERACTIVE" = false ]; then
|
||||
log_info "Setup wizard skipped (non-interactive). Run 'hermes setup' after install."
|
||||
# The setup wizard reads from /dev/tty, so it works even when the
|
||||
# install script itself is piped (curl | bash). Only skip if no
|
||||
# terminal is available at all (e.g. Docker build, CI).
|
||||
if ! [ -e /dev/tty ]; then
|
||||
log_info "Setup wizard skipped (no terminal available). Run 'hermes setup' after install."
|
||||
return 0
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user