Skip to content

Commit

Permalink
Check for docker and docker-compose separately
Browse files Browse the repository at this point in the history
  • Loading branch information
rafalp committed Jan 25, 2023
1 parent 0cbb9f6 commit c91b732
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion dev
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,22 @@ wait_for_db() {

# Check if user has docker-compose
if [[ ! $IN_MISAGO_DOCKER = 1 ]]; then
if ! command -v docker-compose >/dev/null 2>&1; then
if ! command -v docker >/dev/null 2>&1; then
error "You need to have Docker installed to use this tool."
echo
echo "Docker release for your system can be downloaded for free from this page:"
echo "https://www.docker.com/get-started"
echo
exit 1
fi
if ! command -v docker-compose >/dev/null 2>&1; then
error "You need to have Docker Compose installed to use this tool."
echo
echo "Docker release for your system can be downloaded for free from this page:"
echo "https://www.docker.com/get-started"
echo
exit 1
fi
fi

# Commands
Expand Down

0 comments on commit c91b732

Please sign in to comment.