Ignoring passed arguments for @putenv, closes #10846
parent
5730c24c92
commit
690ab5166a
|
@ -243,7 +243,14 @@ class EventDispatcher
|
|||
}
|
||||
} else {
|
||||
$args = implode(' ', array_map(array('Composer\Util\ProcessExecutor', 'escape'), $event->getArguments()));
|
||||
|
||||
// @putenv does not receive arguments
|
||||
if (strpos($callable, '@putenv ') === 0) {
|
||||
$exec = $callable;
|
||||
} else {
|
||||
$exec = $callable . ($args === '' ? '' : ' '.$args);
|
||||
}
|
||||
|
||||
if ($this->io->isVerbose()) {
|
||||
$this->io->writeError(sprintf('> %s: %s', $event->getName(), $exec));
|
||||
} elseif ($event->getName() !== '__exec_command') {
|
||||
|
|
Loading…
Reference in New Issue