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:
@@ -10123,7 +10123,7 @@ case "${1:-menu}" in
|
|||||||
*) echo "Usage: conduit snowflake [status|start|stop|restart|remove]" ;;
|
*) echo "Usage: conduit snowflake [status|start|stop|restart|remove]" ;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
menu|*) show_menu ;;
|
menu|*) [ -t 0 ] || { show_help; exit 0; }; show_menu ;;
|
||||||
esac
|
esac
|
||||||
MANAGEMENT
|
MANAGEMENT
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user