Merge pull request #481 from johnloy/master

Changes $path var to $node_path. Fixes #482.
master
Jordan Harband 2014-07-24 14:07:05 -07:00
commit 0f3b06320e
1 changed files with 3 additions and 3 deletions

6
nvm.sh
View File

@ -56,10 +56,10 @@ fi
nvm_tree_contains_path() { nvm_tree_contains_path() {
local tree local tree
tree="$1" tree="$1"
local path local node_path
path="$2" node_path="$2"
local pathdir local pathdir
pathdir=$(dirname "$path") pathdir=$(dirname "$node_path")
while [ "$pathdir" != "" ] && [ "$pathdir" != "." ] && [ "$pathdir" != "/" ] && [ "$pathdir" != "$tree" ]; do while [ "$pathdir" != "" ] && [ "$pathdir" != "." ] && [ "$pathdir" != "/" ] && [ "$pathdir" != "$tree" ]; do
pathdir=$(dirname "$pathdir") pathdir=$(dirname "$pathdir")
done done