Added console update version check
This commit is contained in:
parent
1093aefa03
commit
7780318de0
@ -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()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user