fix: always pull when -p flag is used

This commit is contained in:
Job
2025-08-27 21:08:03 +02:00
parent 27024a0158
commit cfb894c2eb

View File

@@ -67,9 +67,9 @@ while test $# -gt 0; do
shift shift
done done
if [ "$pull" = true ] || [ "$(podman container inspect "$name" -f {{.State.Running}} 2>&1)" != 'true' ]; then if [ "$(podman container inspect "$name" -f {{.State.Running}} 2>&1)" != 'true' ] || [ "$pull" = true ]; then
log "fetching devcontainer updates..." log "fetching devcontainer updates..."
if [ "$pull" = true ] || [ "$(podman container inspect "$name" -f {{.Image}} 2>&1)" != "$(podman pull -q "$registry/$name" 2>&1)" ]; then if [ "$(podman container inspect "$name" -f {{.Image}} 2>&1)" != "$(podman pull -q "$registry/$name" 2>&1)" ] || [ "$pull" = true ]; then
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
log "container image downloaded" '✓' 32 log "container image downloaded" '✓' 32
else else