shellcheck warnings

This commit is contained in:
Matt Saladna 2018-06-21 14:38:55 -04:00 committed by Chris Hall
parent d7058a4952
commit 9dc29fd8eb
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash
DIR="$(dirname $(realpath "${BASH_SOURCE[0]}"))"
DIR="$(dirname "$(realpath "${BASH_SOURCE[0]}")")"
# shellcheck disable=SC1090,SC1091
\. "$DIR/nvm.sh" --no-use

2
nvm.sh
View File

@ -3813,7 +3813,7 @@ nvm() {
NVM_EXEC="${NVM_DIR}/nvm-exec"
if [ ! -f "${NVM_EXEC}" ]; then
NVM_EXEC=`dirname ${BASH_SOURCE[0]-}`/nvm-exec
NVM_EXEC="$(dirname "${BASH_SOURCE[0]-}")/nvm-exec"
fi
NODE_VERSION="${VERSION}" "${NVM_EXEC}" "$@"
;;