diff --git a/run_onchange_after_install_main_deps.sh.tmpl b/run_onchange_after_install_main_deps.sh.tmpl index b709648..5790f82 100644 --- a/run_onchange_after_install_main_deps.sh.tmpl +++ b/run_onchange_after_install_main_deps.sh.tmpl @@ -63,6 +63,11 @@ while [ $# -gt 0 ]; do shift done +# Auto-detect non-interactive mode when no real terminal is present +if [ ! -t 0 ] || [ ! -t 1 ]; then + NON_INTERACTIVE=1 +fi + # Timeout portability (macOS has gtimeout via coreutils, not timeout) TIMEOUT_BIN="$(command -v timeout || command -v gtimeout || true)"