mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-11 14:51:49 +00:00
Fix print_versions for ls-remote
This commit is contained in:
parent
13781f242b
commit
18331d20b2
6
nvm.sh
6
nvm.sh
@ -140,10 +140,12 @@ colorize_version() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
print_versions() {
|
print_versions() {
|
||||||
|
local VERSION
|
||||||
for VERSION in $1; do
|
for VERSION in $1; do
|
||||||
local PADDED_VERSION=`printf '%10s' $VERSION`
|
|
||||||
if [[ -d "$NVM_DIR/$VERSION" ]]; then
|
if [[ -d "$NVM_DIR/$VERSION" ]]; then
|
||||||
colorize_version "$PADDED_VERSION"
|
colorize_version "$(printf '%10s' $VERSION)"
|
||||||
|
else
|
||||||
|
echo $VERSION
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user