Skip to content

Commit

Permalink
Change update notice to etherpad higher than 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Gared committed Dec 22, 2024
1 parent 7abf84e commit bb55ded
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/Console/GenerateFileHashesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@

namespace Gared\EtherScan\Console;

use Gared\EtherScan\Api\GithubApi;
use Gared\EtherScan\Service\FileHashLookupService;
use Gared\EtherScan\Service\RevisionLookupService;
use GuzzleHttp\Client;
use GuzzleHttp\Exception\GuzzleException;
use Symfony\Component\Console\Attribute\AsCommand;
Expand Down Expand Up @@ -67,4 +65,4 @@ private function getFileHash(string $url, string $path): ?string

return null;
}
}
}
6 changes: 3 additions & 3 deletions src/Console/ScanCommandOutputHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ public function onVersionResult(?string $minVersion, ?string $maxVersion): void
return;
}

if (version_compare($maxVersion, '1.9.0', '<')) {
$this->symfonyStyle->error('You have an old version of etherpad! Please update to 1.9.0 or newer!');
if (version_compare($maxVersion, '2.0.0', '<')) {
$this->symfonyStyle->error('You have an old version of etherpad! Please update to 2.0.0 or newer!');
}

if ($minVersion === null) {
Expand All @@ -180,4 +180,4 @@ public function getConsoleLogger(): ?LoggerInterface
{
return new ConsoleLogger($this->output);
}
}
}

0 comments on commit bb55ded

Please sign in to comment.