set default version
This commit is contained in:
@@ -92,9 +92,15 @@ class Update extends Command
|
|||||||
|
|
||||||
public function getOldVersion()
|
public function getOldVersion()
|
||||||
{
|
{
|
||||||
return ($this->alias == 'core')
|
if ($this->alias == 'core') {
|
||||||
? version('short')
|
return version('short');
|
||||||
: module($this->alias)->get('version');
|
}
|
||||||
|
|
||||||
|
if ($module = module($this->alias)) {
|
||||||
|
return $module->get('version');
|
||||||
|
}
|
||||||
|
|
||||||
|
return '1.0.0';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function download()
|
public function download()
|
||||||
|
|||||||
Reference in New Issue
Block a user