Setup/Update

* setup step names are allowed to have dashes and underscores
This commit is contained in:
Sarjuuk
2024-06-26 16:34:12 +02:00
parent a4c734435e
commit 22b0f8c1c1

View File

@@ -89,8 +89,8 @@ CLISetup::registerUtility(new class extends UtilityScript
// fetch sql/build after applying updates, as they may contain sync-prompts // fetch sql/build after applying updates, as they may contain sync-prompts
[$sql, $build] = DB::Aowow()->selectRow('SELECT `sql` AS "0", `build` AS "1" FROM ?_dbversion'); [$sql, $build] = DB::Aowow()->selectRow('SELECT `sql` AS "0", `build` AS "1" FROM ?_dbversion');
$sql = trim($sql) ? array_unique(explode(' ', trim(preg_replace('/[^a-z]+/i', ' ', $sql)))) : []; $sql = trim($sql) ? array_unique(explode(' ', trim(preg_replace('/[^a-z_\-]+/i', ' ', $sql)))) : [];
$build = trim($build) ? array_unique(explode(' ', trim(preg_replace('/[^a-z]+/i', ' ', $build)))) : []; $build = trim($build) ? array_unique(explode(' ', trim(preg_replace('/[^a-z_\-]+/i', ' ', $build)))) : [];
sleep(1); sleep(1);