8000 Avoid running the remove command without any packages · symfony/symfony@34d2781 · GitHub
[go: up one dir, main page]

Skip to content

Commit 34d2781

Browse files
committed
Avoid running the remove command without any packages
As the exit code of the command was not checked, the failure was not breaking things, but it was still printing a confusing error message.
1 parent 01ccae8 commit 34d2781

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Symfony/Bridge/PhpUnit/bin/simple-phpunit

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ if (!file_exists("$PHPUNIT_DIR/phpunit-$PHPUNIT_VERSION/phpunit") || md5_file(__
7777
$zip->extractTo(getcwd());
7878
$zip->close();
7979
chdir("phpunit-$PHPUNIT_VERSION");
80-
passthru("$COMPOSER remove --no-update ".$SYMFONY_PHPUNIT_REMOVE);
80+
if ($SYMFONY_PHPUNIT_REMOVE) {
81+
passthru("$COMPOSER remove --no-update ".$SYMFONY_PHPUNIT_REMOVE);
82+
}
8183
if (5.1 <= $PHPUNIT_VERSION && $PHPUNIT_VERSION < 5.4) {
8284
passthru("$COMPOSER require --no-update phpunit/phpunit-mock-objects \"~3.1.0\"");
8385
}

0 commit comments

Comments
 (0)
0