From: Francesco Chemolli Date: Fri, 23 Jul 2010 13:10:05 +0000 (+0200) Subject: Fixed builtest.sh shell script brokenness on non-linux platforms. X-Git-Tag: SQUID_3_2_0_1~36 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ff2167f545417a8303f213f94888b7c2e3b4d374;p=thirdparty%2Fsquid.git Fixed builtest.sh shell script brokenness on non-linux platforms. --- ff2167f545417a8303f213f94888b7c2e3b4d374 diff --cc test-suite/buildtest.sh index 452fd2741b,452fd2741b..364ef5254f --- a/test-suite/buildtest.sh +++ b/test-suite/buildtest.sh @@@ -24,7 -24,7 +24,7 @@@ f #if we are on FreeBSD, let's try parallelizing if [ -z "$pjobs" -a -x /sbin/sysctl ]; then ncpus=`sysctl kern.smp.cpus | cut -f2 -d" "` -- if [ $? -eq 0 -a -n $ncpus -a $ncpus -gt 1 ]; then ++ if [ $? -eq 0 -a -n "$ncpus" -a "$ncpus" -gt 1 ]; then pjobs="-j${ncpus}" fi fi