]> Zhao Yanbai Git Server - minix.git/commitdiff
only check local benchmarks if /usr/local/benchmarks exists v3.1.6
authorBen Gras <ben@minix3.org>
Thu, 4 Feb 2010 18:14:48 +0000 (18:14 +0000)
committerBen Gras <ben@minix3.org>
Thu, 4 Feb 2010 18:14:48 +0000 (18:14 +0000)
benchmarks/run

index 63ab91b0dfb49eca5c2abf9e67672712233fe241..54458c95b07dfc1471f47a443cd7949bb4f2208a 100644 (file)
@@ -7,7 +7,10 @@ make
 BENCHDIR=/usr/local/benchmarks
 
 basebenchmarks=`echo *bench*`
-packagebenchmarks=`(cd $BENCHDIR && echo *bench*)`
+
+if [ -d $BENCHDIR ]
+then   packagebenchmarks=`(cd $BENCHDIR && echo *bench*)`
+fi
 
 runbench() {
        bench=$1