1
0
Fork 0

Fix outdated command on linux

pull/5238/head
Jordi Boggiano 2016-04-22 23:31:02 +01:00
parent 313dd14f1e
commit 6c94cb89d1
1 changed files with 2 additions and 2 deletions

View File

@ -50,8 +50,8 @@ EOT
protected function execute(InputInterface $input, OutputInterface $output)
{
// create new input without "global" command prefix
$input = new StringInput('show --latest '.ProcessExecutor::escape($input->getArgument('package')));
$pkg = $input->getArgument('package') ? ProcessExecutor::escape($input->getArgument('package')) : '';
$input = new StringInput('show --latest '.$pkg);
return $this->getApplication()->run($input, $output);
}