Skip to content

Commit 21f2a85

Browse files
authored
[4.x] Fix quiet and no-ansi flags (#156)
* Fix quiet ans no-ansi flags * Apply fixes from StyleCI (#155)
1 parent ec3ffd6 commit 21f2a85

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/NewCommand.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,12 +228,20 @@ protected function runCommands($commands, InputInterface $input, OutputInterface
228228
{
229229
if ($input->getOption('no-ansi')) {
230230
$commands = array_map(function ($value) {
231+
if (substr($value, 0, 5) === 'chmod') {
232+
return $value;
233+
}
234+
231235
return $value.' --no-ansi';
232236
}, $commands);
233237
}
234238

235239
if ($input->getOption('quiet')) {
236240
$commands = array_map(function ($value) {
241+
if (substr($value, 0, 5) === 'chmod') {
242+
return $value;
243+
}
244+
237245
return $value.' --quiet';
238246
}, $commands);
239247
}

0 commit comments

Comments
 (0)