mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-10 22:31:51 +00:00
[shellcheck] Correct redirection order: we want both stdout and stderr sent to /dev/null here.
This commit is contained in:
parent
032fab7172
commit
8f3ee23390
3
nvm.sh
3
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)"
|
||||
|
Loading…
Reference in New Issue
Block a user