fixed typo.

forgot to swap ./regctl to $regbin within the RegHash-variable.
This commit is contained in:
mag37
2023-01-22 14:22:49 +01:00
committed by GitHub
parent 2288acbbb0
commit 98b6074723

View File

@ -63,7 +63,7 @@ do
printf ". " printf ". "
RepoUrl=$(docker inspect "$i" --format='{{.Config.Image}}') RepoUrl=$(docker inspect "$i" --format='{{.Config.Image}}')
LocalHash=$(docker image inspect "$RepoUrl" --format '{{.RepoDigests}}') LocalHash=$(docker image inspect "$RepoUrl" --format '{{.RepoDigests}}')
RegHash=$(./regctl image digest --list "$RepoUrl" 2>/dev/null) RegHash=$($regbin image digest --list "$RepoUrl" 2>/dev/null)
# Check if regtcl produces errors - add to GotErrors if so. # Check if regtcl produces errors - add to GotErrors if so.
if [ $? -eq 0 ] ; then if [ $? -eq 0 ] ; then
if [[ "$LocalHash" = *"$RegHash"* ]] ; then if [[ "$LocalHash" = *"$RegHash"* ]] ; then