We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c8f4c79 + d1f826c commit d54609fCopy full SHA for d54609f
manifests/container.pp
@@ -195,7 +195,7 @@
195
running_digest=\$(podman image inspect $(podman image inspect \${image_name} --format='{{.ID}}') --format '{{.Digest}}')
196
latest_digest=\$(skopeo inspect docker://${image} | \
197
${_ruby} -rjson -e 'puts (JSON.parse(STDIN.read))["Digest"]')
198
- [[ $? -ne 0 ]] && latest_digest=\$(skopeo inspect --no-creds docker://${image} | \
+ test $? -ne 0 && latest_digest=\$(skopeo inspect docker://${image} | \
199
200
test -z "\${latest_digest}" && exit 0 # Do not update if unable to get latest digest
201
test "\${running_digest}" = "\${latest_digest}"
0 commit comments