Fix issue in install get_concurrency

This commit is contained in:
Daniel Perez 2016-07-01 18:26:25 +09:00
parent c44d05011d
commit a8f67c9821

View File

@ -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)