From 23c03b9c91acb8e2f7e9af02291cc1b7a523b852 Mon Sep 17 00:00:00 2001 From: Kevin McConnell Date: Mon, 23 Mar 2026 14:32:35 +0000 Subject: [PATCH] Add non-interactive option to installer To perform an install without launching the TUI at the end: curl https://get.once.com | ONCE_INTERACTIVE=false sh --- installer/templates/install.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/installer/templates/install.sh b/installer/templates/install.sh index 00d3e21..f3757f3 100644 --- a/installer/templates/install.sh +++ b/installer/templates/install.sh @@ -13,6 +13,12 @@ main() { ensure_docker "$os" fetch_latest_release install_once "$arch" + + if [ "${ONCE_INTERACTIVE:-}" = "false" ]; then + echo "once is installed. Run 'once' to get started." + return + fi + run_once }