added more flibiliy for versions, added dry-run option

This commit is contained in:
tracer 2023-05-29 15:26:11 +02:00
commit 154bd410a4
3 changed files with 3 additions and 3 deletions

View File

@ -119,7 +119,7 @@ class UpdateController
echo "Highest Stable Version: $highestStableVersion" . PHP_EOL;
if (!$this->dryRun) {
echo "Installed Version: $installedVersion" . PHP_EOL;
echo 'Installed Version: '. $this->installedVersion . PHP_EOL;
}
[$major, $minor, $patch] = explode(separator: '.', string: $stableVersions[$highestStableVersion]['current']);

View File

@ -21,7 +21,7 @@ Then: Install composer (https://getcomposer.org/download/) and run
`composer install`
followed by:
`php update.php`
`php update.php` or `/update.php`
If you are using KeyHelp, replace

View File

@ -1,4 +1,4 @@
#!/usr/bin/keyhelp-php81 -d apc.enable_cli=1
#!/usr/bin/env php
<?php
use App\UpdateController;