Silencing nvm_version_path error output in nvm_print_versions
parent
d0c6b87b2e
commit
5bc6e289ce
2
nvm.sh
2
nvm.sh
|
@ -382,7 +382,7 @@ nvm_print_versions() {
|
||||||
echo "$1" | while read VERSION; do
|
echo "$1" | while read VERSION; do
|
||||||
if [ "$VERSION" = "$NVM_CURRENT" ]; then
|
if [ "$VERSION" = "$NVM_CURRENT" ]; then
|
||||||
FORMAT='\033[0;32m-> %9s\033[0m'
|
FORMAT='\033[0;32m-> %9s\033[0m'
|
||||||
elif [ -d "$(nvm_version_path "$VERSION")" ]; then
|
elif [ -d "$(nvm_version_path "$VERSION" 2> /dev/null)" ]; then
|
||||||
FORMAT='\033[0;34m%12s\033[0m'
|
FORMAT='\033[0;34m%12s\033[0m'
|
||||||
elif [ "$VERSION" = "system" ]; then
|
elif [ "$VERSION" = "system" ]; then
|
||||||
FORMAT='\033[0;33m%12s\033[0m'
|
FORMAT='\033[0;33m%12s\033[0m'
|
||||||
|
|
Loading…
Reference in New Issue