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

Commit 0a2b615

Browse files
author
CI
committed
Automated update of common script sources and hash
1 parent 040e8fb commit 0a2b615

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

containers/python-3/.devcontainer/library-scripts/node-debian.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ fi
5151
if [ -d "${NVM_DIR}" ]; then
5252
echo "NVM already installed."
5353
if [ "${NODE_VERSION}" != "" ]; then
54-
su ${USERNAME} -c "nvm install ${NODE_VERSION}"
54+
su ${USERNAME} -c "source $NVM_DIR/nvm.sh && nvm install ${NODE_VERSION} && nvm clear-cache"
5555
fi
5656
exit 0
5757
fi
@@ -80,10 +80,11 @@ fi
8080
su ${USERNAME} -c "$(cat << EOF
8181
set -e
8282
curl -so- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
83+
source ${NVM_DIR}/nvm.sh
8384
if [ "${NODE_VERSION}" != "" ]; then
84-
source $NVM_DIR/nvm.sh
8585
nvm alias default ${NODE_VERSION}
8686
fi
87+
nvm clear-cache
8788
EOF
8889
)" 2>&1
8990

0 commit comments

Comments
 (0)