build-images.sh: detect Podman without a pipe (pipefail + grep -q)
Build Kvitt images / build (push) Has been cancelled

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TQd3pEP9UeN2uifbHknQ7B
This commit is contained in:
2026-10-24 12:20:54 +02:00
parent f15fa23b44
commit 8fa91986f0
+3 -1
View File
@@ -45,7 +45,9 @@ images=(
"kvitt-backup|infra/backup|infra/backup/Dockerfile"
)
if docker version 2>/dev/null | grep -qi podman; then engine=podman; else engine=docker; fi
# Capture first: `grep -q` in a pipe closes it early, `docker version` dies of SIGPIPE and pipefail makes the test fail.
engine_info="$(docker version 2>/dev/null || true)"
if [[ "$engine_info" == *[Pp]odman* ]]; then engine=podman; else engine=docker; fi
echo "Engine: $engine; registry: $registry; tag: $tag (and latest); push: $([[ $push == 1 ]] && echo yes || echo no)"
if [[ $push == 1 && -n "$user" && -n "$token" ]]; then