Skip to content

Commit

Permalink
v1.1.4 (#10)
Browse files Browse the repository at this point in the history
* fix: improve docker compose controls
  • Loading branch information
Kasui92 authored Sep 6, 2023
1 parent 54e676d commit e8aedfb
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions gdrcd-stack
Original file line number Diff line number Diff line change
Expand Up @@ -51,23 +51,25 @@ _dc() {

# Check if docker is installed
_checkDocker() {
if ! type "docker" >/dev/null 2>&1; then
if ! command -v docker &> /dev/null; then
echo "Error: Docker not found"
exit 1;
fi;
}

# Check if docker compose is installed
_checkDockerCompose() {
if ! type "docker-compose" >/dev/null 2>&1; then
echo "Error: this stack requires Docker Compose v2, please install it and try again"
exit 1;
fi;
# check if docker compose is installed
if ! command -v docker compose >/dev/null 2>&1; then

# check if docker-compose is installed
if ! command -v docker-compose >/dev/null 2>&1; then
echo "Error: Docker Compose not found"
exit 1;
fi;

# check if docker compose is installed
if ! type "docker compose" >/dev/null 2>&1; then
echo "Error: Docker Compose not found"
# if docker-compose is installed, suggest to install docker compose v2
echo "Error: this stack requires Docker Compose v2, please install it and try again"
exit 1;
fi;
}
Expand Down

0 comments on commit e8aedfb

Please sign in to comment.