Skip to content

Commit 2cfe795

Browse files
msaladnaljharb
authored andcommitted
shellcheck warnings
1 parent acbd22f commit 2cfe795

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: nvm-exec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
DIR="$(dirname $(realpath "${BASH_SOURCE[0]}"))"
3+
DIR="$(dirname "$(realpath "${BASH_SOURCE[0]}")")"
44

55
unset NVM_CD_FLAGS
66

Diff for: nvm.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4078,7 +4078,7 @@ nvm() {
40784078

40794079
NVM_EXEC="${NVM_DIR}/nvm-exec"
40804080
if [ ! -f "${NVM_EXEC}" ]; then
4081-
NVM_EXEC=`dirname ${BASH_SOURCE[0]-}`/nvm-exec
4081+
NVM_EXEC="$(dirname "${BASH_SOURCE[0]-}")/nvm-exec"
40824082
fi
40834083
NODE_VERSION="${VERSION}" "${NVM_EXEC}" "$@"
40844084
;;

0 commit comments

Comments
 (0)