[shellcheck] Correct redirection order: we want both stdout and stderr sent to /dev/null here.

Jordan Harband 2015-10-12 16:48:12 -07:00
parent 032fab7172
commit 8f3ee23390
1 changed files with 1 additions and 2 deletions

3
nvm.sh
View File

@ -2231,8 +2231,7 @@ nvm_supports_source_options() {
}
nvm_supports_xz() {
command which xz 2>&1 >/dev/null && \
nvm_version_greater_than_or_equal_to "$1" "2.3.2"
command which xz >/dev/null 2>&1 && nvm_version_greater_than_or_equal_to "$1" "2.3.2"
}
NVM_VERSION="$(nvm_alias default 2>/dev/null || echo)"