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

@@ -5,7 +5,7 @@
"": {
"dependencies": {
"@octokit/rest": "^22.0.1",
"@opencode-ai/plugin": "0.0.0-dev-202512160412",
"@opencode-ai/plugin": "0.0.0-dev-202512160508",
},
},
},
@@ -34,9 +34,9 @@
"@octokit/types": ["@octokit/types@16.0.0", "", { "dependencies": { "@octokit/openapi-types": "^27.0.0" } }, "sha512-sKq+9r1Mm4efXW1FCk7hFSeJo4QKreL/tTbR0rz/qx/r1Oa2VV83LTA/H/MuCOX7uCIJmQVRKBcbmWoySjAnSg=="],
"@opencode-ai/plugin": ["@opencode-ai/plugin@0.0.0-dev-202512160412", "", { "dependencies": { "@opencode-ai/sdk": "0.0.0-dev-202512160412", "zod": "4.1.8" } }, "sha512-/SGOQeHtRqg89KcAO7iF5b7CTDpCxbMtzXU0BbFzrhF7r7RE+8VCUoHrFKJyS0x6kkDodBajjKIL61yECKW9Ng=="],
"@opencode-ai/plugin": ["@opencode-ai/plugin@0.0.0-dev-202512160508", "", { "dependencies": { "@opencode-ai/sdk": "0.0.0-dev-202512160508", "zod": "4.1.8" } }, "sha512-GLnvMQhEWRHG9E84FyyQKPKi54bGUkytXPfZYjwNy9W6djw8zAW/kpeYPrdIJHPdTHk4OjIHEwoB1SXZzGaLFQ=="],
"@opencode-ai/sdk": ["@opencode-ai/sdk@0.0.0-dev-202512160412", "", {}, "sha512-NWjoJmxiS/WPU+HR2C6+08EoCwhqjLgGQeEK+oDAZL2TL5OnETyAMG0zlGYxtwqQpRrr9t3rW0MWzC+VYpygFw=="],
"@opencode-ai/sdk": ["@opencode-ai/sdk@0.0.0-dev-202512160508", "", {}, "sha512-ICpZ1bX528yQKqYGGyUJQMu3RY0F1pQ6RCoTJ4ESLiYmcXUY1EldgIidiwPA+A/zpEXLu2lPwPZ1LYn/bX6aFA=="],
"before-after-hook": ["before-after-hook@4.0.0", "", {}, "sha512-q6tR3RPqIB1pMiTRMFcZwuG5T8vwp+vUvEG0vuI6B+Rikh5BfPp2fQ82c925FOs+b0lcFQ8CFrL+KbilfZFhOQ=="],

View File

@@ -1,6 +1,6 @@
{
"dependencies": {
"@octokit/rest": "^22.0.1",
"@opencode-ai/plugin": "0.0.0-dev-202512160412"
"@opencode-ai/plugin": "0.0.0-dev-202512160508"
}
}

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