Skip to content

Commit b712ea9

Browse files
committed
fix(opencode.ai): Run as root.
1 parent 6661ff2 commit b712ea9

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-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.3",
4+
"version": "0.0.4",
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: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ set -o nounset
66
set -o allexport
77
readonly name="opencode.ai"
88
cd $HOME
9+
if [ "${VERSION:-latest}" = "latest" ] || [ -z "${VERSION:-}" ]; then
10+
VERSION=""
11+
fi
912
apt_get_update() {
1013
if [ "$(find /var/lib/apt/lists/* | wc -l)" = "0" ]; then
1114
echo "Running apt-get update..."
@@ -31,7 +34,7 @@ install() {
3134
su $_REMOTE_USER -c "curl -fsSL https://opencode.ai/install | bash"
3235
apt_get_cleanup
3336
}
34-
ln -sf $HOME/.opencode/bin/opencode /usr/local/bin/opencode
37+
cp $HOME/.opencode/bin/opencode /usr/local/bin/opencode
3538
echo_banner "devcontainer.community"
3639
echo "Installing $name..."
3740
install "$@"

0 commit comments

Comments
 (0)