Don't forward arguments to nvh.sh
This commit is contained in:
parent
5189915980
commit
e1f3cd638f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue