Added console update version check

This commit is contained in:
Cüneyt Şentürk 2023-06-05 17:05:54 +03:00
parent 1093aefa03
commit 7780318de0

View File

@ -68,6 +68,14 @@ class Update extends Command
$this->old = $this->getOldVersion();
if (version_compare($this->old, $this->new, '>=')) {
$message = 'The current version for the ' . $this->alias . ' is the latest version!';
$this->info($message);
return self::CMD_SUCCESS;
}
company($this->company)->makeCurrent();
if (!$path = $this->download()) {