[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:
2 files changed
+35
-4
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user