Skip to content
Myr

[Fix] `nvm install -s`: fix syntax errors.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Jordan Harband · committed by Jordan Harband · parent f3cc95b · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:nvm.sh+2 added-2 removed
1238 unmodified lines
1239 NVM_CPU_THREADS="$(sysctl -n hw.ncpu)"1240 elif [ "_$NVM_OS" = "_sunos" ]; then1241 NVM_CPU_THREADS="$(psrinfo | wc -l)"1242 fi1243 if [ ! nvm_is_natural_num "$NVM_CPU_THREADS" ] ; then1243 if ! nvm_is_natural_num "$NVM_CPU_THREADS" ; then1244 echo "Can not determine how many thread(s) we can use, set to only 1 now." 1>&21245 echo "Please report an issue on GitHub to help us make it better and run it faster on your computer!" 1>&21246 NVM_MAKE_JOBS="1"1247 else
338 unmodified lines
1586 nobinary=11587 ;;1588 -j)1589 shift # consume "-j"1590 if [ nvm_is_natural_num "$1" ]; then1590 if nvm_is_natural_num "$1"; then1591 NVM_MAKE_JOBS=$11592 echo "number of \`make\` jobs: $NVM_MAKE_JOBS"1593 else1594 unset NVM_MAKE_JOBS
744 unmodified lines