diff --git a/bin/provision-robo.php b/bin/provision-robo.php index 70b62abc..f131d009 100644 --- a/bin/provision-robo.php +++ b/bin/provision-robo.php @@ -53,9 +53,15 @@ $io->warningLite(' Running `provision setup` command to fix the problems... '); } + // Replace given command with "setup", unless there is no command, then append to argv. $command = $input->getFirstArgument(); $command_key = array_search($input->getFirstArgument(), $argv); - $argv[$command_key] = 'setup'; + if (empty($command_key)) { + $argv[] = 'setup'; + } + else { + $argv[$command_key] = 'setup'; + } $input = new ArgvInput($argv); $io = new ProvisionStyle($input, $output); $config = new Config($io, FALSE);