Skip to content

Commit

Permalink
Fixing $argv transformation to ensure replacement of command so that …
Browse files Browse the repository at this point in the history
…options still go through (mainly used so we can use -n on first run to have non-interactive setup.)
  • Loading branch information
jonpugh committed Feb 7, 2018
1 parent afc2901 commit 2a6ce77
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/provision-robo.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@
$io->warningLite(' Running `provision setup` command to fix the problems... ');
}


$argv = [$argv[0], 'setup'];
$command = $input->getFirstArgument();
$command_key = array_search($input->getFirstArgument(), $argv);
$argv[$command_key] = 'setup';
$input = new ArgvInput($argv);
$io = new ProvisionStyle($input, $output);
$config = new Config($io, FALSE);
Expand Down

0 comments on commit 2a6ce77

Please sign in to comment.