From 78e820b83d4f4c67deb9fda147a6ff1ca1a26ec9 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 2 Jan 2018 09:47:18 +0100 Subject: simplify --- php-tecnickcom-tc-lib-color.spec | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/php-tecnickcom-tc-lib-color.spec b/php-tecnickcom-tc-lib-color.spec index 908fdbc..15ebd70 100644 --- a/php-tecnickcom-tc-lib-color.spec +++ b/php-tecnickcom-tc-lib-color.spec @@ -1,6 +1,6 @@ # remirepo/fedora spec file for php-tecnickcom-tc-lib-color # -# Copyright (c) 2015-2017 Remi Collet +# Copyright (c) 2015-2018 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # @@ -90,14 +90,10 @@ require '%{buildroot}%{php_project}/autoload.php'; EOF ret=0 -for cmd in "php %{phpunit}" \ - "php56 %{_bindir}/phpunit" \ - "php70 %{_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 -- cgit