Skip to content

Commit cca06e4

Browse files
committed
fix(opencode.ai): fix arch.
1 parent 3d5982f commit cca06e4

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/opencode.ai/devcontainer-feature.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "opencode.ai",
33
"id": "opencode.ai",
4-
"version": "0.0.6",
4+
"version": "0.0.7",
55
"description": "Install \"opencode\" binary",
66
"documentationURL": "https://github.com/devcontainer-community/devcontainer-features/tree/main/src/opencode.ai",
77
"options": {

src/opencode.ai/install.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,14 @@ curl_download_unzip() {
7979
rm "$temp_file"
8080
}
8181
debian_get_arch() {
82-
echo "$(dpkg --print-architecture)"
82+
arch=$(uname -m)
83+
if [[ "$arch" == "aarch64" ]]; then
84+
arch="arm64"
85+
elif [[ "$arch" == "x86_64" ]]; then
86+
arch="x64"
87+
fi
88+
echo "$arch"
89+
# echo "$(dpkg --print-architecture)" --- IGNORE ---
8390
}
8491
echo_banner() {
8592
local text="$1"

0 commit comments

Comments
 (0)