Changed digest inspect

Reported false positive update available due to not matching local hash.
This commit is contained in:
mag37 2024-11-17 17:03:31 +01:00 committed by GitHub
parent 67fb6bef45
commit c367635974
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -236,7 +236,7 @@ for i in $(podman ps $Stopped --filter "name=$SearchName" --format '{{.Names}}')
# Looping every item over the list of excluded names and skipping
for e in "${Excludes[@]}" ; do [[ "$i" == "$e" ]] && continue 2 ; done
RepoUrl=$(podman inspect "$i" --format='{{.ImageName}}')
LocalHash=$(podman image inspect "$RepoUrl" --format '{{.Digest}}')
LocalHash=$(podman image inspect "$RepoUrl" --format '{{.RepoDigests}}')
# Checking for errors while setting the variable
if RegHash=$(${t_out} $regbin -v error image digest --list "$RepoUrl" 2>&1) ; then
if [[ "$LocalHash" == *"$RegHash"* ]] ; then