diff --git a/modules/system/console/OctoberUpdate.php b/modules/system/console/OctoberUpdate.php index fb810b632..d9a29ade1 100644 --- a/modules/system/console/OctoberUpdate.php +++ b/modules/system/console/OctoberUpdate.php @@ -48,9 +48,11 @@ class OctoberUpdate extends Command $coreHash = array_get($updateList, 'core.hash'); $coreBuild = array_get($updateList, 'core.build'); - $this->output->writeln('Downloading application files'); - $manager->downloadCore($coreHash); - + if ($coreHash) { + $this->output->writeln('Downloading application files'); + $manager->downloadCore($coreHash); + } + $plugins = array_get($updateList, 'plugins'); foreach ($plugins as $code => $plugin) { $pluginName = array_get($plugin, 'name'); @@ -60,8 +62,10 @@ class OctoberUpdate extends Command $manager->downloadPlugin($code, $pluginHash); } - $this->output->writeln('Unpacking application files'); - $manager->extractCore($coreHash, $coreBuild); + if ($coreHash) { + $this->output->writeln('Unpacking application files'); + $manager->extractCore($coreHash, $coreBuild); + } foreach ($plugins as $code => $plugin) { $pluginName = array_get($plugin, 'name'); @@ -93,4 +97,4 @@ class OctoberUpdate extends Command return []; } -} \ No newline at end of file +}