Skip to content

Commit c50a013

Browse files
authored
Use a valid command to test for the existence of docker compose (#3364)
docker compose -v was not a valid command, it produces the docker compose help text
1 parent 6434c6f commit c50a013

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/blacklight.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def with_solr(&block)
2424
# We're being invoked by the app entrypoint script and solr is already up via docker compose
2525
if ENV['SOLR_ENV'] == 'docker-compose'
2626
yield
27-
elsif system('docker compose -v')
27+
elsif system('docker compose version')
2828
# We're not running `docker compose up' but still want to use a docker instance of solr.
2929
begin
3030
puts "Starting Solr"

0 commit comments

Comments
 (0)