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