Skip to content

Commit

Permalink
Switch order of checks
Browse files Browse the repository at this point in the history
  • Loading branch information
epapbak committed Aug 9, 2024
1 parent 6637fd9 commit 152c429
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions run_in_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,17 @@ command_exists() {
command -v "$1" &> /dev/null
}

# Check if Podman is installed
if command_exists podman; then
CONTAINER_TOOL="podman"
COMPOSER="podman-compose"

# Check if Docker is installed
elif command_exists docker; then
if command_exists docker; then
CONTAINER_TOOL="docker"
COMPOSER="docker compose"
# Check if Podman is installed
elif command_exists podman; then
CONTAINER_TOOL="podman"
COMPOSER="podman-compose"
else
echo "Neither Docker nor Podman is installed on this system."
echo "Neither Docker nor Podman are installed on this system."
exit 1
fi

Expand Down

0 comments on commit 152c429

Please sign in to comment.