diff --git a/install.sh b/install.sh index 0943a3e..ea0a89f 100755 --- a/install.sh +++ b/install.sh @@ -8,7 +8,7 @@ function scr_install local destination_path="/tmp" local bin_path="/usr/local/bin" - local stitchocker_stable_release="1.0.1" + local stitchocker_stable_release="1.1.0" local stitchoker_uri="https://raw.githubusercontent.com/alexaandrov/stitchocker/$stitchocker_stable_release/stitchocker.sh" local stitchocker_name="stitchocker" local stitchocker_tmp_path="$destination_path/$stitchocker_name.sh" diff --git a/stitchocker.sh b/stitchocker.sh index e3a0027..7e3a0c3 100755 --- a/stitchocker.sh +++ b/stitchocker.sh @@ -241,7 +241,13 @@ function scr local cmd_env="" fi - local cmd="docker-compose $cmd_env -f $config_path $command $flags" + if docker compose version | grep "Docker Compose version" &> /dev/null; then + local docker_compose="docker compose" + elif docker-compose version | grep "Docker Compose version" &> /dev/null; then + local docker_compose="docker-compose" + fi + + local cmd="$docker_compose $cmd_env -f $config_path $command $flags" if [[ $debug == false ]]; then if [[ $verbose == true ]]; then