Merge pull request #845 from MarkMaldaba/fix_paths_with_spaces

Fixed the install script, which bails-out with an error if the PHPCI path contains spaces.
This commit is contained in:
Marco Vito Moscaritolo 2015-04-12 21:17:12 +02:00
commit 0b0589557f

View file

@ -323,7 +323,9 @@ class InstallCommand extends Command
{
$output->write(Lang::get('setting_up_db'));
shell_exec(PHPCI_DIR . 'vendor/bin/phinx migrate -c "' . PHPCI_DIR . 'phinx.php"');
$phinxBinary = escapeshellarg(PHPCI_DIR . 'vendor/bin/phinx');
$phinxScript = escapeshellarg(PHPCI_DIR . 'phinx.php');
shell_exec($phinxBinary . ' migrate -c ' . $phinxScript);
$output->writeln('<info>'.Lang::get('ok').'</info>');
}