We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c4aed0 commit 0d8abe7Copy full SHA for 0d8abe7
src/GlobalConfig.php
@@ -159,10 +159,13 @@ public function applyGlobalComposerConfig() {
159
$commands[] = 'composer config --global ' . escapeshellcmd($config);
160
}
161
if ($commands) {
162
- $process = new Process($commands);
163
- $process->run();
164
- if ($process->getExitCode()) {
165
- throw new InvalidArgumentException("Problems settings global composer config with commands: " . $command);
+ foreach ($commands as $command) {
+ $process = new Process(explode(' ', $command));
+ $process->run();
+ if ($process->getExitCode()) {
166
+ echo $process->getExitCode();
167
+ throw new InvalidArgumentException("Problems settings global composer config with commands: " . $command);
168
+ }
169
170
171
0 commit comments