This repository was archived by the owner on Nov 30, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +1
-1
lines changed
containers/codespaces-linux/.devcontainer Expand file tree Collapse file tree 2 files changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,7 @@ RUN bash /tmp/scripts/powershell-debian.sh \
89
89
RUN bash /tmp/scripts/node-debian.sh "${NVM_DIR}" "none" "${USERNAME}" \
90
90
&& (cd ${NVM_DIR} && git remote get-url origin && echo $(git log -n 1 --pretty=format:%H -- .)) > ${NVM_DIR}/.git-remote-and-commit \
91
91
# Install nvs (alternate cross-platform Node.js version-management tool)
92
+ && sudo -u ${USERNAME} git config --global --add safe.directory /home/codespace/.nvs \
92
93
&& sudo -u ${USERNAME} git clone -c advice.detachedHead=false --depth 1 https://github.com/jasongin/nvs ${NVS_HOME} 2>&1 \
93
94
&& (cd ${NVS_HOME} && git remote get-url origin && echo $(git log -n 1 --pretty=format:%H -- .)) > ${NVS_HOME}/.git-remote-and-commit \
94
95
&& sudo -u ${USERNAME} bash ${NVS_HOME}/nvs.sh install \
Original file line number Diff line number Diff line change @@ -127,7 +127,6 @@ su ${USERNAME} -c "$(cat << EOF
127
127
# Do not update profile - we'll do this manually
128
128
export PROFILE=/dev/null
129
129
ls -lah /home/${USERNAME} /.nvs || :
130
- mkdir /home/${USERNAME} /.nvs || chown ${USERNAME} : /home/${USERNAME} /.nvs
131
130
curl -so- https://raw.githubusercontent.com/nvm-sh/nvm/v${NVM_VERSION} /install.sh | bash
132
131
source ${NVM_DIR} /nvm.sh
133
132
if [ "${NODE_VERSION} " != "" ]; then
You can’t perform that action at this time.
0 commit comments