Silencing error outputs as well (for consistency and following after things like curl)
This commit is contained in:
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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user