BuildSourceImage: fail early if mkdir fails

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2019-09-18 12:07:05 -04:00
parent 525ae39ec3
commit a8df221421
Signed by: vbatts
GPG key ID: 10937E57733F1362

View file

@ -976,6 +976,10 @@ main() {
_rm_rf "${TMPDIR}"
fi
_mkdir_p "${TMPDIR}"
ret=$?
if [ ${ret} -ne 0 ] ; then
_error "failed to mkdir ${TMP}"
fi
# setup rootfs to be inspected (if any)
rootfs=""