From 5b46e9d113470845680f7072453389c3cf06c1b0 Mon Sep 17 00:00:00 2001 From: David Galloway Date: Sat, 23 Aug 2025 13:40:01 -0400 Subject: [PATCH] setup_cont_runtime: Move podman debugging info inside command -v Fails jobs if podman is not installed already Signed-off-by: David Galloway --- scripts/setup_container_runtime.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/setup_container_runtime.sh b/scripts/setup_container_runtime.sh index 4d1e0e95..a62a53db 100755 --- a/scripts/setup_container_runtime.sh +++ b/scripts/setup_container_runtime.sh @@ -2,8 +2,8 @@ # vim: ts=4 sw=4 expandtab function setup_container_runtime () { loginctl enable-linger "$(id -nu)" - podman system info > /dev/null || podman system reset --force if command -v podman; then + podman system info > /dev/null || podman system reset --force PODMAN_MAJOR_VERSION=$(podman version -f json | jq -r '.Client.Version|split(".")[0]') if [ "$PODMAN_MAJOR_VERSION" -lt 4 ]; then echo "Found a very old podman; removing" -- 2.47.3