From 814084b0515a859845adf90134a65fdcf07565fd Mon Sep 17 00:00:00 2001 From: SamNet-dev Date: Tue, 10 Feb 2026 12:20:15 -0600 Subject: [PATCH] fix: Guard interactive menu against non-TTY invocation (#40) If `conduit` is launched without arguments in a non-interactive context (no terminal), show help and exit instead of entering the TUI menu which could spin as a stray process. --- conduit.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conduit.sh b/conduit.sh index ea5672b..2aebc00 100644 --- a/conduit.sh +++ b/conduit.sh @@ -10123,7 +10123,7 @@ case "${1:-menu}" in *) echo "Usage: conduit snowflake [status|start|stop|restart|remove]" ;; esac ;; - menu|*) show_menu ;; + menu|*) [ -t 0 ] || { show_help; exit 0; }; show_menu ;; esac MANAGEMENT