Skip to content

Commit

Permalink
Update docker-compose version check
Browse files Browse the repository at this point in the history
Signed-off-by: Riddhesh Sanghvi <riddhesh237@gmail.com>
  • Loading branch information
mrrobot47 committed May 13, 2024
1 parent b7b9407 commit 36f61eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions php/EE/Runner.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ public function check_requirements( $show_error = true ) {
$error[] = 'EasyEngine requires docker-compose.';
}

$docker_compose_version = EE::launch( 'docker-compose version --short' )->stdout;
if ( version_compare( $docker_compose_version, '2.26.0', '<' ) ) {
$docker_compose_version = trim( EE::launch( 'docker-compose version --short' )->stdout );
if ( version_compare( $docker_compose_version, '2.26.1', '<' ) ) {
if ( $show_error ) {
EE::warning( 'EasyEngine requires docker-compose version 2.26.0 or greater.' );
EE::warning( 'EasyEngine requires docker-compose version 2.26.1 or greater.' );
EE::warning( 'You can get the updated version of docker-compose from assets in https://github.com/docker/compose/releases/tag/v2.26.1' );
}
}
Expand Down

0 comments on commit 36f61eb

Please sign in to comment.