BuildSourceImage: catch return code and exit
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
e565987415
commit
cb1dd4ca21
1 changed files with 4 additions and 0 deletions
|
@ -1120,6 +1120,10 @@ main() {
|
||||||
# including its digest.
|
# including its digest.
|
||||||
if [ -z "${inspect_image_digest}" ] ; then
|
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}")")"
|
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
|
fi
|
||||||
_debug "inspect_image_digest: ${inspect_image_digest}"
|
_debug "inspect_image_digest: ${inspect_image_digest}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue