From 62f080b0e45194b7930eedb1e52675fdb72c9809 Mon Sep 17 00:00:00 2001 From: Aiden Cline Date: Tue, 16 Dec 2025 00:20:05 -0600 Subject: fix: small bug w/ install script --- install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'install') diff --git a/install b/install index 115ac169a..67690b9a3 100755 --- a/install +++ b/install @@ -243,8 +243,8 @@ download_and_install() { local tmp_dir="${TMPDIR:-/tmp}/opencode_install_$$" mkdir -p "$tmp_dir" - if [[ "$os" == "windows" ]] || ! download_with_progress "$url" "$tmp_dir/$filename"; then - # Fallback to standard curl on Windows or if custom progress fails + if [[ "$os" == "windows" ]] || ! [ -t 2 ] || ! download_with_progress "$url" "$tmp_dir/$filename"; then + # Fallback to standard curl on Windows, non-TTY environments, or if custom progress fails curl -# -L -o "$tmp_dir/$filename" "$url" fi -- cgit v1.2.3