[Fix] nvm_print_versions: don't mark N/A as installed

With nothing installed, `nvm_ls` prints `N/A`, which then counted as an installed version,
so `nvm ls` and an unmatched `nvm ls-remote` printed `N/A *`.
This commit is contained in:
Jordan Harband committed 2026-10-21 13:52:16 -07:00
1 parent 6cef0edd18
commit fd23eb2037
3 files changed
+33 -2

No files matched your search

+1 -1
View File
@@ -76,7 +76,7 @@ nvm_has_colors() { return 0; }
[ $EXIT_CODE -eq 3 ] || die "nvm ls-remote lts/ARGON did not exit 3, got '${EXIT_CODE}'"
EXPECTED_OUTPUT="LTS names must be lowercase
N/A *"
N/A"
[ "_${OUTPUT}" = "_${EXPECTED_OUTPUT}" ] || die "nvm ls-remote lts/ARGON did not output expected error message; got >${OUTPUT}< expected >${EXPECTED_OUTPUT}<"
REMOTE="${PWD}/mocks/nvm_ls_remote.txt"