Don't forward arguments to nvh.sh

This commit is contained in:
Thomas Goyne 2017-09-18 19:16:28 -07:00
parent 5189915980
commit e1f3cd638f
1 changed files with 3 additions and 3 deletions

View File

@ -234,13 +234,13 @@ trap cleanup EXIT
# Use a consistent version of Node if possible.
if [[ -z "$(command -v nvm)" ]]; then
if [ -f "$NVM_DIR/nvm.sh" ]; then
. "$NVM_DIR/nvm.sh" || true
. "$NVM_DIR/nvm.sh" '' || true
elif [ -x "$(command -v brew)" ] && [ -f "$(brew --prefix nvm)/nvm.sh" ]; then
# we must be on mac and nvm was installed with brew
# TODO: change the mac slaves to use manual nvm installation
. "$(brew --prefix nvm)/nvm.sh" || true
. "$(brew --prefix nvm)/nvm.sh" '' || true
elif [ -f "$HOME/.nvm/nvm.sh" ]; then
. ~/.nvm/nvm.sh
. ~/.nvm/nvm.sh ''
fi
fi
if [[ "$(command -v nvm)" ]]; then