awong-dev/insanity-scripts — pull request #1 by digit-android (2014-05-26 15:52:58+00:00)
Title: Fix Linux support.

The 'nproc' executable behaves differently under Linux and Darwin
(i.e. sends the result to stdout on Linux, stderr on Darwin).

A previous patch made the computation of PARALLEL incorrect on Linux,
this fixes the problem.

As long as we're using platform-specific code, Use something a
little more reliable to compute the number of cores.