only check local benchmarks if /usr/local/benchmarks exists

This commit is contained in:
Ben Gras 2010-02-04 18:14:48 +00:00
parent 5795636593
commit 2725087880

View 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