From dddb5b5f74ede7b2826413554b5e65295c86bec3 Mon Sep 17 00:00:00 2001 From: Serge Schneider Date: Fri, 27 May 2016 13:22:06 +0100 Subject: [PATCH] export-noobs: ensure STAGE_WORK_DIR exists --- export-noobs/prerun.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/export-noobs/prerun.sh b/export-noobs/prerun.sh index 9f9a39f..a531be6 100755 --- a/export-noobs/prerun.sh +++ b/export-noobs/prerun.sh @@ -4,6 +4,7 @@ IMG_FILE="${STAGE_WORK_DIR}/${IMG_DATE}-${IMG_NAME}${IMG_SUFFIX}.img" NOOBS_DIR="${STAGE_WORK_DIR}/${IMG_DATE}-${IMG_NAME}${IMG_SUFFIX}" unmount_image ${IMG_FILE} +mkdir -p ${STAGE_WORK_DIR} cp ${WORK_DIR}/export-image/${IMG_DATE}-${IMG_NAME}${IMG_SUFFIX}.img ${STAGE_WORK_DIR}/ rm -rf ${STAGE_WORK_DIR}/${IMG_DATE}-${IMG_NAME}${IMG_SUFFIX}