Permalink
Browse files

Return exit code from CreateProjectCommand

  • Loading branch information...
1 parent ab38ee3 commit e5faa8c0e4207f1bae7695eb212d3bae2d48a300 @fprochazka committed Aug 18, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Composer/Command/CreateProjectCommand.php
@@ -84,7 +84,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$input->getOption('repository-url'),
$input->getOption('no-custom-installers'),
$input->getOption('no-scripts')
- );
+ ) ? 0 : 1;
}
public function installProject(IOInterface $io, $packageName, $directory = null, $version = null, $preferSource = false, $installDevPackages = false, $repositoryUrl = null, $disableCustomInstallers = false, $noScripts = false)
@@ -155,7 +155,7 @@ public function installProject(IOInterface $io, $packageName, $directory = null,
$installer->disableCustomInstallers();
}
- $installer->run();
+ return $installer->run();
}
protected function createDownloadManager(IOInterface $io)

0 comments on commit e5faa8c

Please sign in to comment.