dev-setup.sh: blow up if podman-docker is installed

Good review feedback from Leo
This commit is contained in:
Jeff Schroeder 2022-02-22 05:59:54 +00:00 committed by Evan Gray
parent 8a556495db
commit 108c23416f
1 changed files with 6 additions and 1 deletions

View File

@ -37,7 +37,12 @@ case "$DISTRO" in
exit 1
fi
;;
RedHatEnterprise-8.*) true ;; # Not in OS repositories.
RedHatEnterprise-8.*)
if rpm -q podman-docker &>/dev/null; then
echo "podman-docker is installed. Please uninstall it first."
exit 1
fi
;;
*) echo "Internal error: $DISTRO not matched in case block." && exit 1 ;;
esac