fix: hide podman pull errors
All checks were successful
Build container / build (push) Successful in 9m10s

This commit is contained in:
Job 2024-12-22 15:02:19 +01:00
parent a69e237bd6
commit d74c7565bd
Signed by: Job79
SSH Key Fingerprint: SHA256:BezbKv3jZaqu7SdNrZM0e42b8nlNwh63zaVj/pUxc7U

View File

@ -59,7 +59,7 @@ done
if [ "$fetch" = true ] || [ "$(podman container inspect "$name" -f {{.State.Running}} 2>&1)" != 'true' ]; then
log "fetching devcontainer updates..."
if [ "$(podman pull -q "$image")" != "$(podman container inspect "$name" -f {{.Image}} 2>&1)" ]; then
if [ "$(podman pull -q "$image" 2>&1)" != "$(podman container inspect "$name" -f {{.Image}} 2>&1)" ]; then
log "container image downloaded" '✓' 32
podman container rm -f -t 1 "$name" 1>/dev/null
podman run -td $(run_args) "$image"