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}"
|
||||
fi
|
||||
_mkdir_p "${TMPDIR}"
|
||||
ret=$?
|
||||
if [ ${ret} -ne 0 ] ; then
|
||||
_error "failed to mkdir ${TMP}"
|
||||
fi
|
||||
|
||||
# setup rootfs to be inspected (if any)
|
||||
rootfs=""
|
||||
|
|
Loading…
Reference in a new issue