Skip to content

Commit

Permalink
use nproc: available on both alpine linux and ubuntu linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Dane Springmeyer committed Dec 9, 2018
1 parent c7ea656 commit f6ab273
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mason.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ esac

case ${MASON_UNAME} in
'Darwin') MASON_CONCURRENCY=$(sysctl -n hw.ncpu) ;;
'Linux') MASON_CONCURRENCY=$(lscpu -p | egrep -v '^#' | wc -l) ;;
'Linux') MASON_CONCURRENCY=$(nproc) ;;
*) MASON_CONCURRENCY=1 ;;
esac

Expand Down

0 comments on commit f6ab273

Please sign in to comment.