diff --git a/README.md b/README.md index 8b107ca..3a85328 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,7 @@ | [nixos.org](https://github.com/devcontainer-community/devcontainer-features/tree/main/src/nixos.org) | `nix` — the Nix package manager | curl | 1.0.2 | | [nvidia.com/cuda](https://github.com/devcontainer-community/devcontainer-features/tree/main/src/nvidia.com-cuda) | NVIDIA CUDA Toolkit for GPU computing | curl | 1.0.2 | | [onecli.sh/cli](https://github.com/devcontainer-community/devcontainer-features/tree/main/src/onecli.sh-cli) | `onecli` — manage agents, secrets, rules, and configuration from the terminal | gh release | 1.0.3 | -| [opencode.ai](https://github.com/devcontainer-community/devcontainer-features/tree/main/src/opencode.ai) | `opencode` — AI coding agent in the terminal | gh release | 1.0.6 | +| [opencode.ai](https://github.com/devcontainer-community/devcontainer-features/tree/main/src/opencode.ai) | `opencode` — AI coding agent in the terminal | gh release | 1.0.7 | | [pi.dev](https://github.com/devcontainer-community/devcontainer-features/tree/main/src/pi.dev) | `pi` — minimal terminal coding harness | gh release | 1.0.3 | | [pkgx.sh](https://github.com/devcontainer-community/devcontainer-features/tree/main/src/pkgx.sh) | `pkgx` — run any package without installing | curl | 1.0.2 | | [pulumi.com](https://github.com/devcontainer-community/devcontainer-features/tree/main/src/pulumi.com) | `pulumi` — infrastructure as code in any language | gh release | 1.0.3 | diff --git a/src/opencode.ai/devcontainer-feature.json b/src/opencode.ai/devcontainer-feature.json index 0aec331..412606d 100644 --- a/src/opencode.ai/devcontainer-feature.json +++ b/src/opencode.ai/devcontainer-feature.json @@ -1,7 +1,7 @@ { "name": "opencode.ai", "id": "opencode.ai", - "version": "1.0.6", + "version": "1.0.7", "description": "Install \"opencode\" binary", "documentationURL": "https://github.com/devcontainer-community/devcontainer-features/tree/main/src/opencode.ai", "options": { diff --git a/src/opencode.ai/install.sh b/src/opencode.ai/install.sh index 65e799b..45415ff 100755 --- a/src/opencode.ai/install.sh +++ b/src/opencode.ai/install.sh @@ -73,14 +73,14 @@ curl_download_tarball() { rm "$temp_file" } debian_get_arch() { + local arch arch=$(uname -m) if [[ "$arch" == "aarch64" ]]; then - arch="arm64" + arch="arm64" elif [[ "$arch" == "x86_64" ]]; then - arch="x64" + arch="x64" fi echo "$arch" -# echo "$(dpkg --print-architecture)" --- IGNORE --- } echo_banner() { local text="$1" @@ -140,6 +140,7 @@ install() { readonly binaryTargetPath="${binaryTargetFolder}/${binaryName}" curl_download_tarball "$downloadUrl" "$binaryTargetFolder" chmod 755 "$binaryTargetPath" + apt_get_cleanup } echo_banner "devcontainer.community" echo "Installing $name..." diff --git a/test/opencode.ai/test.sh b/test/opencode.ai/test.sh index 2d6d862..e6be1b5 100755 --- a/test/opencode.ai/test.sh +++ b/test/opencode.ai/test.sh @@ -12,8 +12,7 @@ source dev-container-features-test-lib # The 'check' command comes from the dev-container-features-test-lib. Syntax is... # check