shellcheck warnings

This commit is contained in:
Matt Saladna 2018-06-21 14:38:55 -04:00
parent c18cbf4d25
commit d956279e5a
No known key found for this signature in database
GPG Key ID: ED68223DE93752A9
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
SOURCE=${BASH_SOURCE[0]}
test -L "$SOURCE" && SOURCE=`readlink "$SOURCE"`
test -L "$SOURCE" && SOURCE=$(readlink "$SOURCE")
DIR="$(command cd "$( dirname "$SOURCE" )" && pwd )"
unset NVM_CD_FLAGS

2
nvm.sh
View File

@ -3872,7 +3872,7 @@ nvm() {
fi
fi
NVM_EXEC="$NVM_DIR/nvm-exec"
test ! -f "$NVM_EXEC" && NVM_EXEC=`dirname ${BASH_SOURCE[0]-}`/nvm-exec
test ! -f "$NVM_EXEC" && NVM_EXEC="$(dirname "${BASH_SOURCE[0]-}")/nvm-exec"
NODE_VERSION="$VERSION" "$NVM_EXEC" "$@"
;;
"ls" | "list")