From f12a40bc15aa3c06225e1406554573ce94c6040c Mon Sep 17 00:00:00 2001 From: Francesco Chemolli Date: Fri, 23 Jul 2010 14:46:14 +0200 Subject: [PATCH] Fixed builtest.sh shell script brokenness on non-linux platforms. --- test-suite/buildtest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3