Skip to content

Commit

Permalink
Changed digest inspect
Browse files Browse the repository at this point in the history
Reported false positive update available due to not matching local hash.
  • Loading branch information
mag37 authored Nov 17, 2024
1 parent 67fb6be commit c367635
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion podcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c367635

Please sign in to comment.