BuildSourceImage: fail early if mkdir fails
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
525ae39ec3
commit
a8df221421
1 changed files with 4 additions and 0 deletions
|
@ -976,6 +976,10 @@ main() {
|
||||||
_rm_rf "${TMPDIR}"
|
_rm_rf "${TMPDIR}"
|
||||||
fi
|
fi
|
||||||
_mkdir_p "${TMPDIR}"
|
_mkdir_p "${TMPDIR}"
|
||||||
|
ret=$?
|
||||||
|
if [ ${ret} -ne 0 ] ; then
|
||||||
|
_error "failed to mkdir ${TMP}"
|
||||||
|
fi
|
||||||
|
|
||||||
# setup rootfs to be inspected (if any)
|
# setup rootfs to be inspected (if any)
|
||||||
rootfs=""
|
rootfs=""
|
||||||
|
|
Loading…
Reference in a new issue