From 8f3ee2339006ae7abbf6dc1a7833940c9fc10c19 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Mon, 12 Oct 2015 16:48:12 -0700 Subject: [PATCH] [shellcheck] Correct redirection order: we want both stdout and stderr sent to /dev/null here. --- nvm.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nvm.sh b/nvm.sh index d18728e..edbc54a 100755 --- a/nvm.sh +++ b/nvm.sh @@ -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)"