diff options
| author | Aiden Cline <[email protected]> | 2025-12-16 00:20:05 -0600 |
|---|---|---|
| committer | Aiden Cline <[email protected]> | 2025-12-16 00:20:05 -0600 |
| commit | 62f080b0e45194b7930eedb1e52675fdb72c9809 (patch) | |
| tree | 992d9b5c2bec25526a229e1beb5055d497959233 /install | |
| parent | ae3990a55756912ef815767673d1e040623a77bc (diff) | |
| download | opencode-62f080b0e45194b7930eedb1e52675fdb72c9809.tar.gz opencode-62f080b0e45194b7930eedb1e52675fdb72c9809.zip | |
fix: small bug w/ install script
Diffstat (limited to 'install')
| -rwxr-xr-x | install | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |
