fix: small bug w/ install script

This commit is contained in:
Aiden Cline
2025-12-16 00:20:05 -06:00
parent ae3990a557
commit 62f080b0e4
3 changed files with 6 additions and 6 deletions

View File

@@ -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