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

Commit 537de3b

Browse files
authored
update codespaces-linux dockerfile and revert script change
1 parent e1a20d5 commit 537de3b

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ 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 \
9293
&& sudo -u ${USERNAME} git clone -c advice.detachedHead=false --depth 1 https://github.com/jasongin/nvs ${NVS_HOME} 2>&1 \
9394
&& (cd ${NVS_HOME} && git remote get-url origin && echo $(git log -n 1 --pretty=format:%H -- .)) > ${NVS_HOME}/.git-remote-and-commit \
9495
&& sudo -u ${USERNAME} bash ${NVS_HOME}/nvs.sh install \

script-library/node-debian.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ su ${USERNAME} -c "$(cat << EOF
127127
# Do not update profile - we'll do this manually
128128
export PROFILE=/dev/null
129129
ls -lah /home/${USERNAME}/.nvs || :
130-
mkdir /home/${USERNAME}/.nvs || chown ${USERNAME}: /home/${USERNAME}/.nvs
131130
curl -so- https://raw.githubusercontent.com/nvm-sh/nvm/v${NVM_VERSION}/install.sh | bash
132131
source ${NVM_DIR}/nvm.sh
133132
if [ "${NODE_VERSION}" != "" ]; then

0 commit comments

Comments
 (0)