Explorar el Código

Fix outdated command on linux

Jordi Boggiano hace 9 años
padre
commit
6c94cb89d1
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/Composer/Command/OutdatedCommand.php

+ 2 - 2
src/Composer/Command/OutdatedCommand.php

@@ -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);
     }