From: Francesco Chemolli Date: Fri, 23 Jul 2010 12:46:14 +0000 (+0200) Subject: Fixed builtest.sh shell script brokenness on non-linux platforms. X-Git-Tag: SQUID_3_2_0_1~36^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f12a40bc15aa3c06225e1406554573ce94c6040c;p=thirdparty%2Fsquid.git Fixed builtest.sh shell script brokenness on non-linux platforms. --- diff --git a/test-suite/buildtest.sh b/test-suite/buildtest.sh index 452fd2741b..364ef5254f 100755 --- a/test-suite/buildtest.sh +++ b/test-suite/buildtest.sh @@ -24,7 +24,7 @@ fi #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