From e186fa27a7ea88092c1d42a6d823c53f4883f023 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Mon, 15 Sep 2014 09:20:47 -0700 Subject: [PATCH] Use `nvm_version_greater` in `nvm_binary_available` --- nvm.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/nvm.sh b/nvm.sh index aeefc92..f6e9511 100644 --- a/nvm.sh +++ b/nvm.sh @@ -195,11 +195,9 @@ nvm_prepend_path() { nvm_binary_available() { # binaries started with node 0.8.6 - local MINIMAL - MINIMAL="0.8.6" - local VERSION - VERSION=$1 - [ $(nvm_normalize_version $VERSION) -ge $(nvm_normalize_version $MINIMAL) ] + local LAST_VERSION_WITHOUT_BINARY + LAST_VERSION_WITHOUT_BINARY="0.8.5" + nvm_version_greater "$1" "$LAST_VERSION_WITHOUT_BINARY" } nvm_ls_current() {