We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1825923 commit 15f1d86Copy full SHA for 15f1d86
nvm.sh
@@ -313,7 +313,9 @@ nvm_tree_contains_path() {
313
pathdir=$(dirname "${node_path}")
314
315
# get real directory in case of symbolic links
316
- [ -d "${pathdir}" ] && pathdir="$( cd -P "${pathdir}" && pwd )"
+ if [ -d "${pathdir-}" ]; then
317
+ pathdir="$(nvm_cd -P "${pathdir}" && pwd)"
318
+ fi
319
320
while [ "${pathdir}" != "" ] && [ "${pathdir}" != "." ] && [ "${pathdir}" != "/" ] && [ "${pathdir}" != "${tree}" ]; do
321
pathdir=$(dirname "${pathdir}")
0 commit comments