Skip to content

Commit

Permalink
fix: docker compose command check
Browse files Browse the repository at this point in the history
  • Loading branch information
zsq1234 committed Sep 25, 2024
1 parent 9388547 commit 079f1c1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/all-in-one/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,13 @@ if ! [ -x "$(command -v docker)" ]; then
exit 1
fi

if ! [ -x "$(command -v docker-compose)" ] && ! [ -x "$(command -v docker compose)" ]; then
echo "Error: docker-compose is not installed." >&2
exit 1
docker compose version &>/dev/null
if [ $? -ne 0 ]; then
docker-compose version &>/dev/null
if [ $? -ne 0 ]; then
echo "Error: docker compose is not installed."
exit 1
fi
fi

# check docker daemon
Expand Down

0 comments on commit 079f1c1

Please sign in to comment.