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.
This commit is contained in:
SamNet-dev
2026-02-10 12:20:15 -06:00
parent d8331203a9
commit 814084b051

View File

@@ -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