Just stop people right there.

This commit is contained in:
Dane Everitt 2021-01-23 16:32:43 -08:00
parent 2a8d336336
commit bf2291357f
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53

View file

@ -35,13 +35,16 @@ class UpgradeCommand extends Command
public function handle() public function handle()
{ {
$skipDownload = $this->option('skip-download'); $skipDownload = $this->option('skip-download');
if (!$skipDownload) { if (!$skipDownload) {
$this->output->warning('This command does not verify the integrity of downloaded assets. Please ensure that you trust the download source before continuing. If you do not wish to download an archive, please indicate that using the --skip-download flag, or answering "no" to the question below.'); $this->output->warning('This command does not verify the integrity of downloaded assets. Please ensure that you trust the download source before continuing. If you do not wish to download an archive, please indicate that using the --skip-download flag, or answering "no" to the question below.');
$this->output->comment('Download Source (set with --url=):'); $this->output->comment('Download Source (set with --url=):');
$this->line($this->getUrl()); $this->line($this->getUrl());
} }
if (version_compare(PHP_VERSION, '7.4.0') < 0) {
$this->error('Cannot execute self-upgrade process. The minimum required PHP version required is 7.4.0, you have [' . PHP_VERSION . '].');
}
$user = 'www-data'; $user = 'www-data';
if ($this->input->isInteractive()) { if ($this->input->isInteractive()) {
if (!$skipDownload) { if (!$skipDownload) {