Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

Commit c6e5862

Browse files
authored
a bit more safe.directory config for nvs
1 parent 537de3b commit c6e5862

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

containers/codespaces-linux/.devcontainer/base.Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ RUN bash /tmp/scripts/powershell-debian.sh \
8989
RUN bash /tmp/scripts/node-debian.sh "${NVM_DIR}" "none" "${USERNAME}" \
9090
&& (cd ${NVM_DIR} && git remote get-url origin && echo $(git log -n 1 --pretty=format:%H -- .)) > ${NVM_DIR}/.git-remote-and-commit \
9191
# Install nvs (alternate cross-platform Node.js version-management tool)
92-
&& sudo -u ${USERNAME} git config --global --add safe.directory /home/codespace/.nvs \
92+
&& git config --global --add safe.directory /home/codespace/.nvs \
93+
&& mkdir -p ${NVS_HOME} \
94+
&& chown -R ${USERNAME}: ${NVS_HOME} \
9395
&& sudo -u ${USERNAME} git clone -c advice.detachedHead=false --depth 1 https://github.com/jasongin/nvs ${NVS_HOME} 2>&1 \
9496
&& (cd ${NVS_HOME} && git remote get-url origin && echo $(git log -n 1 --pretty=format:%H -- .)) > ${NVS_HOME}/.git-remote-and-commit \
9597
&& sudo -u ${USERNAME} bash ${NVS_HOME}/nvs.sh install \

0 commit comments

Comments
 (0)