Skip to content

Commit

Permalink
Merge pull request #450 from Vernoxvernax/master
Browse files Browse the repository at this point in the history
container-setup.sh: Fix binary checks in validate_prereqs.
  • Loading branch information
pushrbx authored Oct 26, 2023
2 parents 28338d8 + 6fcae72 commit 1be19fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions container-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ validate_prereqs() {
podman_exists=$(command -v podman)
podman_compose_exists=$(command -v podman-compose)

if [ -x "$docker_exists" ] && [ -x "$podman_exists" ]; then
if [ ! -x "$docker_exists" ] && [ ! -x "$podman_exists" ]; then
echo -e "'docker' is not installed. \xE2\x9D\x8C"
exit 1
else
Expand All @@ -61,7 +61,7 @@ validate_prereqs() {
DOCKER_CMD="podman"
fi

if [ -x "$docker_compose_exists" ] && [ -x "$docker_compose_exists" ]; then
if [ ! -x "$docker_compose_exists" ] && [ ! -x "$podman_compose_exists" ]; then
echo -e "'docker-compose' is not installed. \xE2\x9D\x8C"
exit 1
else
Expand Down

0 comments on commit 1be19fc

Please sign in to comment.