mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-11 06:41:50 +00:00
Merge pull request #481 from johnloy/master
Changes $path var to $node_path. Fixes #482.
This commit is contained in:
commit
0f3b06320e
6
nvm.sh
6
nvm.sh
@ -56,10 +56,10 @@ fi
|
||||
nvm_tree_contains_path() {
|
||||
local tree
|
||||
tree="$1"
|
||||
local path
|
||||
path="$2"
|
||||
local node_path
|
||||
node_path="$2"
|
||||
local pathdir
|
||||
pathdir=$(dirname "$path")
|
||||
pathdir=$(dirname "$node_path")
|
||||
while [ "$pathdir" != "" ] && [ "$pathdir" != "." ] && [ "$pathdir" != "/" ] && [ "$pathdir" != "$tree" ]; do
|
||||
pathdir=$(dirname "$pathdir")
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user