fix(verify): skip stale check when image tag unknown (avoid bogus podman images call)

This commit is contained in:
a2nr 2026-08-10 11:25:44 +07:00
parent 0b513b3900
commit 6ba508c7bc
1 changed files with 1 additions and 1 deletions

View File

@ -277,7 +277,7 @@ verify)
else
while IFS='|' read -r cname cimage cid cstatus clabels; do
svc=$(printf '%s' "$clabels" | sed -n 's/.*com.docker.compose.service[:=]\([^ ,}]*\).*/\1/p')
tag="${SERVICE_IMAGE_TAG[$svc]:-unknown}"
tag="${SERVICE_IMAGE_TAG[$svc]}"
stale=""
if [ -n "$tag" ]; then
tag_iid=$(podman images "$tag" --noheading --format '{{.ID}}' 2>/dev/null | head -1)