Silence stderr warning on `nvm uninstall' with no configured alias
parent
6c3708d337
commit
f1b484ee87
2
nvm.sh
2
nvm.sh
|
@ -339,7 +339,7 @@ nvm()
|
||||||
echo "Uninstalled node $VERSION"
|
echo "Uninstalled node $VERSION"
|
||||||
|
|
||||||
# Rm any aliases that point to uninstalled 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
|
do
|
||||||
nvm unalias `basename $A`
|
nvm unalias `basename $A`
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue