Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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

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