#!/usr/bin/env bash ABSDIR="$( dirname "$(readlink -f -- "$0")" )" source ${ABSDIR}/../functions.sh source ${ABSDIR}/vars.sh ensure_pwd_is_scriptdir ensure_not_root upstream_imageversion=${upstream_image}:${upstream_version} current_imageversion=$(podman container inspect -f '{{.ImageName}}' ${container_name}) if [[ "${upstream_imageversion}" != "${current_imageversion}" ]] ; then echo Container ${container_name} needs to be rebuilt echo NOT IMPLEMENTED YET exit 1 else echo Container ${container_name} does not needs rebuilding. Exiting exit 0 fi