fix(container-setup.sh): fix docker binary checks in validate_prereqs

first check whether docker or podman bins are there; then choose one one of them
This commit is contained in:
VernoxVernax 2023-10-26 18:55:51 +02:00
parent 28338d81f2
commit 6fcae72eb4
No known key found for this signature in database
GPG Key ID: BF70645D7856A06F

View File

@ -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
@ -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