From a8f67c9821a532d88b014b5e97b25c82117dc8f7 Mon Sep 17 00:00:00 2001 From: Daniel Perez Date: Fri, 1 Jul 2016 18:26:25 +0900 Subject: [PATCH] Fix issue in install get_concurrency --- lib/commands/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/commands/install.sh b/lib/commands/install.sh index 04fb17eb..abed201f 100644 --- a/lib/commands/install.sh +++ b/lib/commands/install.sh @@ -12,7 +12,7 @@ install_command() { get_concurrency() { if which nproc > /dev/null 2>&1; then echo $(nproc) - elif which nproc > /dev/null 2>&1; then + elif which sysctl > /dev/null 2>&1; then echo $(sysctl -n hw.ncpu) elif [ -f /proc/cpuinfo ]; then echo $(grep -c processor /proc/cpuinfo)