From b6a7a54d04da76d675b6b2cce4b5c5903bec2cfd Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Fri, 8 Dec 2017 21:20:59 -0800 Subject: [PATCH] [Fix] `nvm install-latest-npm`: fix node 4-4.6 --- nvm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvm.sh b/nvm.sh index c68c44d..1487064 100644 --- a/nvm.sh +++ b/nvm.sh @@ -206,7 +206,7 @@ nvm_install_latest_npm() { NVM_IS_4_4_OR_BELOW=1 fi - if $NVM_IS_4_4_OR_BELOW -eq 1 || (\ + if [ $NVM_IS_4_4_OR_BELOW -eq 1 ] || (\ nvm_version_greater_than_or_equal_to "${NODE_VERSION}" 5.0.0 \ && nvm_version_greater 5.10.0 "${NODE_VERSION}"\ ); then