Skip to content

Commit 62f080b

Browse files
committed
fix: small bug w/ install script
1 parent ae3990a commit 62f080b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.opencode/bun.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.opencode/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"dependencies": {
33
"@octokit/rest": "^22.0.1",
4-
"@opencode-ai/plugin": "0.0.0-dev-202512160412"
4+
"@opencode-ai/plugin": "0.0.0-dev-202512160508"
55
}
66
}

install

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,8 @@ download_and_install() {
243243
local tmp_dir="${TMPDIR:-/tmp}/opencode_install_$$"
244244
mkdir -p "$tmp_dir"
245245

246-
if [[ "$os" == "windows" ]] || ! download_with_progress "$url" "$tmp_dir/$filename"; then
247-
# Fallback to standard curl on Windows or if custom progress fails
246+
if [[ "$os" == "windows" ]] || ! [ -t 2 ] || ! download_with_progress "$url" "$tmp_dir/$filename"; then
247+
# Fallback to standard curl on Windows, non-TTY environments, or if custom progress fails
248248
curl -# -L -o "$tmp_dir/$filename" "$url"
249249
fi
250250

0 commit comments

Comments
 (0)