summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2018-01-02 09:49:04 +0100
committerRemi Collet <remi@remirepo.net>2018-01-02 09:49:04 +0100
commit67ba489876b15729a2d7fd375fb2ee46e5f176e8 (patch)
treee160d152cf2b99c533ba4f7df80ca92227a995f6
parent82bc7f9e5e3ec682616cfcd9a6176a1d42176e8d (diff)
simplify
-rw-r--r--php-tecnickcom-tc-lib-pdf-parser.spec11
1 files changed, 4 insertions, 7 deletions
diff --git a/php-tecnickcom-tc-lib-pdf-parser.spec b/php-tecnickcom-tc-lib-pdf-parser.spec
index 6312dc3..4965fb0 100644
--- a/php-tecnickcom-tc-lib-pdf-parser.spec
+++ b/php-tecnickcom-tc-lib-pdf-parser.spec
@@ -91,13 +91,10 @@ require '%{php_project}/../Filter/autoload.php';
EOF
ret=0
-for cmd in "php %{phpunit}" \
- "php56 %{_bindir}/phpunit" \
- "php70 %{_bindir}/phpunit6" \
- "php71 %{_bindir}/phpunit6" \
- "php72 %{_bindir}/phpunit6"; do
- if which $cmd; then
- $cmd --no-coverage --verbose || ret=1
+for cmdarg in "php %{phpunit}" "php56 %{_bindir}/phpunit" php70 php71 php72; do
+ if which $cmdarg; then
+ set $cmdarg
+ $1 ${2:-%{_bindir}/phpunit6} --no-coverage --verbose || ret=1
fi
done
exit $ret