Skip to content
This repository has been archived by the owner on Nov 12, 2019. It is now read-only.

Commit

Permalink
dont continue if installer failed
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Heleniak committed Sep 1, 2012
1 parent f201cb9 commit 46caef9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/rg/broker/commands/AddRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@ protected function execute(InputInterface $input, OutputInterface $output) {
$installer->setRunScripts(false);
$installer->setPreferDist(true);
$installer->setUpdate(true);
$installer->run();

if (!$installer->run()) {
$output->writeln('Composer installer failed!');
return 1;
}

if (file_exists($targetDir)) {
$processExecutor->execute('rm -rf ' . $targetDir);
Expand Down

0 comments on commit 46caef9

Please sign in to comment.