James Cole 2023-03-04 07:18:20 +01:00
parent 4a0887c978
commit 5d316ea26a
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80

View File

@ -147,6 +147,12 @@ class UpdateRequest implements UpdateRequestInterface
];
$current = config('firefly.version');
$latest = $information['version'];
// strip the 'v' from the version if it's there.
if (str_starts_with($latest, 'v')) {
$latest = substr($latest, 1);
}
$compare = version_compare($latest, $current);
Log::debug(sprintf('Current version is "%s", latest is "%s", result is: %d', $current, $latest, $compare));