Merge pull request #50 from vbatts/catch_error

BuildSourceImage: catch return code and exit
This commit is contained in:
Vincent Batts 2019-10-15 15:30:21 -04:00 committed by GitHub
commit 599c0eb13f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1120,6 +1120,10 @@ main() {
# including its digest.
if [ -z "${inspect_image_digest}" ] ; then
inspect_image_digest="$(fetch_img_digest "$(parse_img_base "${input_inspect_image_ref}"):$(parse_img_tag "${input_inspect_image_ref}")")"
ret=$?
if [ ${ret} -ne 0 ] ; then
_error "failed to detect image digest"
fi
fi
_debug "inspect_image_digest: ${inspect_image_digest}"