Skip to content

fix checking for docker compose command in install.sh#1499

Open
rootninja1337 wants to merge 1 commit intoyogeshojha:masterfrom
rootninja1337:master
Open

fix checking for docker compose command in install.sh#1499
rootninja1337 wants to merge 1 commit intoyogeshojha:masterfrom
rootninja1337:master

Conversation

@rootninja1337
Copy link

🔍 Why Not Just command -v "docker compose"?

Because docker compose is not a standalone command, it's a subcommand of the docker binary.
docker compose is part of the Docker CLI.
command -v only works for standalone binaries (like docker, ls, curl).
So to test if the subcommand exists, you try running it and check the return status

@github-actions
Copy link
Contributor

Woohoo @rootninja1337! 🎉 You've just dropped some hot new code! 🔥

Hang tight while we review this! You rock! 🤘

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant