I have PHP file which has logic based on which I run either
bin/phpunit -c Application/app --testsuite $TESTSUITE
bin/phpunit -c Application/app --group group1 group2
when Im doing
#!/bin/bash COMMAND=$(php travis_groups.php) echo $COMMAND //bin/phpunit -c Application/app --testsuite $TESTSUITE $COMMAND
Nothing happens but when I paste the command to sh file it works.
Why I can't I execute a command which is generated by a PHP script?