Silencing error outputs as well (for consistency and following after things like curl)

Alan Quach 2015-07-09 18:00:13 +10:00
parent 88a50780fc
commit 2da44f90d2
1 changed files with 2 additions and 2 deletions

4
nvm.sh
View File

@ -1476,11 +1476,11 @@ nvm() {
[ $silent -ne 1 ] && echo "Now using system version of io.js: $(iojs --version 2>/dev/null)$(nvm_print_npm_version)"
return
else
echo "System version of node not found." >&2
[ $silent -ne 1 ] && echo "System version of node not found." >&2
return 127
fi
elif [ "_$VERSION" = "_∞" ]; then
echo "The alias \"$PROVIDED_VERSION\" leads to an infinite loop. Aborting." >&2
[ $silent -ne 1 ] && echo "The alias \"$PROVIDED_VERSION\" leads to an infinite loop. Aborting." >&2
return 8
fi