[Fix] nvm_ls: no blank line before system when nothing is installed

`nvm ls` then printed an empty row ahead of the system version.
This commit is contained in:
Jordan Harband committed 2026-10-21 12:44:44 -07:00
1 parent d65637f2e8
commit 6cef0edd18
2 files changed
+35 -4

No files matched your search

+4 -4
View File
@@ -2193,11 +2193,11 @@ nvm_ls() {
case "${PATTERN}" in
'' | v)
if [ -n "${SYSTEM_VERSION}" ]; then
VERSIONS="${VERSIONS}
system ${SYSTEM_VERSION}"
VERSIONS="${VERSIONS:+${VERSIONS}
}system ${SYSTEM_VERSION}"
else
VERSIONS="${VERSIONS}
system"
VERSIONS="${VERSIONS:+${VERSIONS}
}system"
fi
;;
system)