Skip to content

Commit

Permalink
[Fix] Remove $NVM_DIR trailing slash automatically, fix nvm-sh#1708
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterDaveHello committed Feb 19, 2018
1 parent f290ccf commit 732d380
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@ if [ -z "${NVM_DIR-}" ]; then
# shellcheck disable=SC1001
NVM_DIR="$(nvm_cd ${NVM_CD_FLAGS} "$(dirname "${NVM_SCRIPT_SOURCE:-$0}")" > /dev/null && \pwd)"
export NVM_DIR
else
export NVM_DIR="${NVM_DIR%/}"
fi
unset NVM_SCRIPT_SOURCE 2> /dev/null

Expand Down

0 comments on commit 732d380

Please sign in to comment.