[Fix] ls: list versions whose directory is a symlink
nvm_ls collects installed versions with `find <dirs>/* -name . -o -type d -prune -o -path ...`, and `-type d` is false for a symlink, so a version dir that links to another volume was skipped from the listing entirely - while `nvm version`, `nvm which` and `nvm use` all kept working on it. Have that find follow symlinks, which makes linked-in versions visible and still ignores a broken link. Fixes #617.
This commit is contained in:
1 parent
970ed9ea18
commit
c6bf252f7d
3 files changed
+29
-1
No files matched your search
@@ -14,3 +14,4 @@ rm -rf ../../../v0.20.3
|
||||
rm -rf ../../../versions
|
||||
rm -f ../../../alias/stable
|
||||
rm -f ../../../alias/unstable
|
||||
rm -rf ../../../symlink-target
|
||||
Reference in new issue
Block a user