From b995879867c2d779fd8bd4e4337dcb576d427422 Mon Sep 17 00:00:00 2001 From: Luigi Cruz Date: Thu, 20 Feb 2020 01:57:12 -0300 Subject: [PATCH] Delete img before exporting. --- builder/export-image/04-finalise/01-run.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/builder/export-image/04-finalise/01-run.sh b/builder/export-image/04-finalise/01-run.sh index 86970dc..a2bff5e 100755 --- a/builder/export-image/04-finalise/01-run.sh +++ b/builder/export-image/04-finalise/01-run.sh @@ -94,6 +94,7 @@ if [ "${DEPLOY_ZIP}" == "1" ]; then tar -cJf "${DEPLOY_DIR}/${ZIP_FILENAME}${IMG_SUFFIX}.tar.xz" \ "$(basename "${IMG_FILE}")" popd > /dev/null + rm -f "${DEPLOY_DIR}/${IMG_FILENAME}${IMG_SUFFIX}.img" else cp "$IMG_FILE" "$DEPLOY_DIR" fi