Skip to content

Commit fc996b6

Browse files
authored
Make sure bun is installed for the correct user. (#80)
1 parent be5c859 commit fc996b6

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/.devcontainer/devcontainer.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
"./features/activestorage": {},
1717
"./features/postgres-client": {},
1818
"./features/mysql-client": {},
19-
"./features/sqlite3": {}
19+
"./features/sqlite3": {},
20+
"./features/bun": {}
2021
},
2122
// Set `remoteUser` to `root` to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
2223
"remoteUser": "vscode"

features/bun/install.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/bin/sh
22
set -e
33

4-
curl -fsSL https://bun.sh/install | bash
4+
USERNAME="${USERNAME:-"${_REMOTE_USER:-"automatic"}"}"
5+
6+
su ${USERNAME} -c "curl -fsSL https://bun.sh/install | bash"

0 commit comments

Comments
 (0)