Silence stderr warning on `nvm uninstall' with no configured alias

master
Emanuele Aina 2013-04-11 19:56:18 +02:00
parent 6c3708d337
commit f1b484ee87
1 changed files with 1 additions and 1 deletions

2
nvm.sh
View File

@ -339,7 +339,7 @@ nvm()
echo "Uninstalled node $VERSION"
# Rm any aliases that point to uninstalled version.
for A in `grep -l $VERSION $NVM_DIR/alias/*`
for A in `grep -l $VERSION $NVM_DIR/alias/* 2>/dev/null`
do
nvm unalias `basename $A`
done