1
0
mirror of https://github.com/deployphp/deployer.git synced 2025-02-23 00:32:25 +01:00

Fix Magento version detection, fixes ()

This commit is contained in:
Simon Sprankel 2022-01-17 21:07:32 +01:00 committed by GitHub
parent b6d646d8e3
commit 0305fc26f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -59,8 +59,8 @@ set('clear_paths', [
set('magento_version', function () {
// detect version
$versionOutput = run('{{bin/php}} {{release_or_current_path}}/bin/magento --version');
preg_match('/(\d+\.?)+$/', $versionOutput, $matches);
return $matches[0] ?? "2.0";
preg_match('/(\d+\.?)+(-p\d+)?$/', $versionOutput, $matches);
return $matches[0] ?? '2.0';
});
set('maintenance_mode_status_active', function () {