only check local benchmark dir if it exists

This commit is contained in:
Ben Gras 2010-02-04 18:15:10 +00:00
parent 4876a324ab
commit cb2ee95cf9

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