Warn user that commands are being run in another directory

main
Jordi Boggiano 11 years ago
parent 4989940533
commit 57146c12b4

@ -72,6 +72,7 @@ EOT
// change to global dir
$config = Factory::createConfig();
chdir($config->get('home'));
$output->writeln('<info>Changed current directory to '.$config->get('home').'</info>');
// create new input without "global" command prefix
$input = new StringInput(preg_replace('{\bg(?:l(?:o(?:b(?:a(?:l)?)?)?)?)?\b}', '', $input->__toString(), 1));

Loading…
Cancel
Save