Эх сурвалжийг харах

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

Good review feedback from Leo
Jeff Schroeder 3 жил өмнө
parent
commit
108c23416f
1 өөрчлөгдсөн 6 нэмэгдсэн , 1 устгасан
  1. 6 1
      scripts/dev-setup.sh

+ 6 - 1
scripts/dev-setup.sh

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