From dc8b63cb2540628574c65192a8aa2182d5b8d7dc Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Mon, 28 Dec 2015 12:19:50 -0800 Subject: [PATCH] [Fix] `nvm install -s`: fix syntax errors. --- nvm.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nvm.sh b/nvm.sh index 098cb51..27dce9c 100755 --- a/nvm.sh +++ b/nvm.sh @@ -1240,7 +1240,7 @@ nvm_install_node_source() { elif [ "_$NVM_OS" = "_sunos" ]; then NVM_CPU_THREADS="$(psrinfo | wc -l)" fi - if [ ! nvm_is_natural_num "$NVM_CPU_THREADS" ] ; then + if ! nvm_is_natural_num "$NVM_CPU_THREADS" ; then echo "Can not determine how many thread(s) we can use, set to only 1 now." 1>&2 echo "Please report an issue on GitHub to help us make it better and run it faster on your computer!" 1>&2 NVM_MAKE_JOBS="1" @@ -1587,7 +1587,7 @@ nvm() { ;; -j) shift # consume "-j" - if [ nvm_is_natural_num "$1" ]; then + if nvm_is_natural_num "$1"; then NVM_MAKE_JOBS=$1 echo "number of \`make\` jobs: $NVM_MAKE_JOBS" else