X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=lib%2Fbtr%2Fbtr.sh;h=96376efcfeba08ac79bf41d50d4a6ef8f925727a;hb=55181f92726b4306007e3bac012bbeff71ca4944;hp=e8bc4c1194ae3b4947519c092dc2a2cf9b58da01;hpb=b609ee3359952dcb039173e14abebd5ed21c8b42;p=m6w6%2Fbtr diff --git a/lib/btr/btr.sh b/lib/btr/btr.sh index e8bc4c1..96376ef 100755 --- a/lib/btr/btr.sh +++ b/lib/btr/btr.sh @@ -84,7 +84,7 @@ function parseopts { ;; -b|--build) case "$2" in - php|pecl) + *) BUILD_RULES="$2" ;; esac @@ -92,7 +92,7 @@ function parseopts { ;; -r|--report) case "$2" in - mail) + *) REPORT_RULES="$2" ;; esac @@ -144,7 +144,7 @@ function setup { export CONFIG_REPORT="btr+config-$BUILD-$DATE" export BUILD_REPORT="btr+build-$BUILD-$DATE" export TEST_REPORT="btr+tests-$BUILD-$DATE" - export LAST_REPORT=$(basename $(ls -t "$BTRDIR/btr+tests-$BUILD"* | tail -n1)) + export LAST_REPORT=$(basename $(ls -t "$BTRDIR/btr+tests-$BUILD"* 2>/dev/null | tail -n1) 2>/dev/null) export REPORT="" }