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

Commit

Permalink
Automated update of common script sources and hash
Browse files Browse the repository at this point in the history
  • Loading branch information
CI committed Aug 25, 2020
1 parent 040e8fb commit 0a2b615
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 0a2b615

Please sign in to comment.