]> 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 12:46:14 +0000 (14:46 +0200)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Fri, 23 Jul 2010 12:46:14 +0000 (14:46 +0200)
test-suite/buildtest.sh

index 452fd2741b26343987dd6abf290d8a23c4eb085e..364ef5254fdf35e133286549f1d2c8d778826437 100755 (executable)
@@ -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