]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fixed builtest.sh shell script brokenness on non-linux platforms.
authorFrancesco Chemolli <kinkie@squid-cache.org>
Fri, 23 Jul 2010 13:10:05 +0000 (15:10 +0200)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Fri, 23 Jul 2010 13:10:05 +0000 (15:10 +0200)
1  2 
test-suite/buildtest.sh

index 452fd2741b26343987dd6abf290d8a23c4eb085e,452fd2741b26343987dd6abf290d8a23c4eb085e..364ef5254fdf35e133286549f1d2c8d778826437
@@@ -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