Skip to content

Commit 042b6b7

Browse files
committed
fix(opencode.ai): Run as root.
1 parent 1e24582 commit 042b6b7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
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.1",
4+
"version": "0.0.2",
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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ set -o noclobber
55
set -o nounset
66
set -o allexport
77
readonly name="opencode.ai"
8+
cd $HOME
89
apt_get_update() {
910
if [ "$(find /var/lib/apt/lists/* | wc -l)" = "0" ]; then
1011
echo "Running apt-get update..."
@@ -30,6 +31,7 @@ install() {
3031
su $_REMOTE_USER -c "curl -fsSL https://opencode.ai/install | bash"
3132
apt_get_cleanup
3233
}
34+
ln -sf $HOME/.opencode/bin/opencode /usr/local/bin/opencode
3335
echo_banner "devcontainer.community"
3436
echo "Installing $name..."
3537
install "$@"

0 commit comments

Comments
 (0)