mirror of
https://github.com/getgrav/grav.git
synced 2026-07-05 22:58:39 +02:00
added --prefer-dist to these commands
This commit is contained in:
@@ -98,7 +98,7 @@ class InstallCommand extends Command
|
||||
if (!$input->getOption('symlink')) {
|
||||
// Updates composer first
|
||||
$output->writeln("\nInstalling vendor dependencies");
|
||||
$output->writeln(system('php bin/composer.phar --working-dir="'.$this->destination.'" --no-interaction --no-dev -o install'));
|
||||
$output->writeln(system('php bin/composer.phar --working-dir="'.$this->destination.'" --no-interaction --no-dev --prefer-dist -o install'));
|
||||
|
||||
$this->gitclone($output);
|
||||
} else {
|
||||
|
||||
@@ -154,7 +154,7 @@ class SelfupgradeCommand extends Command
|
||||
}
|
||||
|
||||
$this->output->writeln("\nInstalling vendor dependencies");
|
||||
$this->output->writeln(system('php bin/composer.phar --working-dir="'.$this->destination.'" --no-interaction --no-dev -o install'));
|
||||
$this->output->writeln(system('php bin/composer.phar --working-dir="'.GRAV_ROOT.'" --no-interaction --no-dev --prefer-dist -o install'));
|
||||
|
||||
// clear cache after successful upgrade
|
||||
$this->clearCache('all');
|
||||
|
||||
Reference in New Issue
Block a user