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