Silencing error outputs as well (for consistency and following after things like curl)
parent
88a50780fc
commit
2da44f90d2
4
nvm.sh
4
nvm.sh
|
@ -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)"
|
[ $silent -ne 1 ] && echo "Now using system version of io.js: $(iojs --version 2>/dev/null)$(nvm_print_npm_version)"
|
||||||
return
|
return
|
||||||
else
|
else
|
||||||
echo "System version of node not found." >&2
|
[ $silent -ne 1 ] && echo "System version of node not found." >&2
|
||||||
return 127
|
return 127
|
||||||
fi
|
fi
|
||||||
elif [ "_$VERSION" = "_∞" ]; then
|
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
|
return 8
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue