diff --git a/build.sh b/build.sh index 3aedfc0..aee2944 100755 --- a/build.sh +++ b/build.sh @@ -37,7 +37,7 @@ fi if ((UPDATE)); then echo "Update requested: rebuilding ${IMAGE} with current Ubuntu package metadata." - podman rmi ${IMAGE_REPO} + podman rmi $(podman images -q ${IMAGE_REPO}) fi if [ ${DRY_RUN} == false ]; then