From 0a2b615539884616fce374dbdc28476383bf2e9c Mon Sep 17 00:00:00 2001 From: CI Date: Tue, 25 Aug 2020 00:53:21 +0000 Subject: [PATCH] Automated update of common script sources and hash --- .../python-3/.devcontainer/library-scripts/node-debian.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/containers/python-3/.devcontainer/library-scripts/node-debian.sh b/containers/python-3/.devcontainer/library-scripts/node-debian.sh index 99d80cfee0..b2c5823b20 100644 --- a/containers/python-3/.devcontainer/library-scripts/node-debian.sh +++ b/containers/python-3/.devcontainer/library-scripts/node-debian.sh @@ -51,7 +51,7 @@ fi if [ -d "${NVM_DIR}" ]; then echo "NVM already installed." if [ "${NODE_VERSION}" != "" ]; then - su ${USERNAME} -c "nvm install ${NODE_VERSION}" + su ${USERNAME} -c "source $NVM_DIR/nvm.sh && nvm install ${NODE_VERSION} && nvm clear-cache" fi exit 0 fi @@ -80,10 +80,11 @@ fi su ${USERNAME} -c "$(cat << EOF set -e curl -so- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash + source ${NVM_DIR}/nvm.sh if [ "${NODE_VERSION}" != "" ]; then - source $NVM_DIR/nvm.sh nvm alias default ${NODE_VERSION} fi + nvm clear-cache EOF )" 2>&1