From cdaeb1a8d58f95fc94477fbd38352fbb469f1cf9 Mon Sep 17 00:00:00 2001 From: Edward Frazer Date: Thu, 7 May 2026 10:41:40 -0700 Subject: [PATCH] fix: add noninteractive install script mode --- scripts/install/install.ps1 | 4 ++++ scripts/install/install.sh | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/scripts/install/install.ps1 b/scripts/install/install.ps1 index ed4a3e1a32..bc49b92759 100644 --- a/scripts/install/install.ps1 +++ b/scripts/install/install.ps1 @@ -27,6 +27,10 @@ function Prompt-YesNo { [string]$Prompt ) + if ($env:CODEX_INSTALL_SCRIPT_NONINTERACTIVE -eq "true") { + return $false + } + if ([Console]::IsInputRedirected -or [Console]::IsOutputRedirected) { return $false } diff --git a/scripts/install/install.sh b/scripts/install/install.sh index 2fc585d7e9..26661a703c 100755 --- a/scripts/install/install.sh +++ b/scripts/install/install.sh @@ -60,6 +60,9 @@ parse_args() { --help | -h) cat </dev/null; then printf '%s [y/N] ' "$prompt" >/dev/tty if ! IFS= read -r answer