Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions scripts/functions.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash

function get_docker_compose_command() {
local DCC
docker-compose version >/dev/null 2>/dev/null && DCC='docker-compose'
docker compose version >/dev/null 2>/dev/null && DCC='docker compose'
if [ -z "$DCC" ]; then
Expand All @@ -10,6 +11,7 @@ function get_docker_compose_command() {
}

function docker_compose() {
local DCC
DCC=$(get_docker_compose_command)
if [ -z "$DCC" ]; then
echo "❌ Install docker-compose before running this script"
Expand Down
Loading