Skip to content

Commit dc8b63c

Browse files
committed
[Fix] nvm install -s: fix syntax errors.
1 parent f3cc95b commit dc8b63c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nvm.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,7 +1240,7 @@ nvm_install_node_source() {
12401240
elif [ "_$NVM_OS" = "_sunos" ]; then
12411241
NVM_CPU_THREADS="$(psrinfo | wc -l)"
12421242
fi
1243-
if [ ! nvm_is_natural_num "$NVM_CPU_THREADS" ] ; then
1243+
if ! nvm_is_natural_num "$NVM_CPU_THREADS" ; then
12441244
echo "Can not determine how many thread(s) we can use, set to only 1 now." 1>&2
12451245
echo "Please report an issue on GitHub to help us make it better and run it faster on your computer!" 1>&2
12461246
NVM_MAKE_JOBS="1"
@@ -1587,7 +1587,7 @@ nvm() {
15871587
;;
15881588
-j)
15891589
shift # consume "-j"
1590-
if [ nvm_is_natural_num "$1" ]; then
1590+
if nvm_is_natural_num "$1"; then
15911591
NVM_MAKE_JOBS=$1
15921592
echo "number of \`make\` jobs: $NVM_MAKE_JOBS"
15931593
else

0 commit comments

Comments
 (0)