diff options
author | Błażej Sowa <[email protected]> | 2018-12-19 13:06:57 +0100 |
---|---|---|
committer | XECDesign <[email protected]> | 2018-12-21 04:11:13 +0000 |
commit | d7ca8e8f143293c9803e48501675832af0a3108e (patch) | |
tree | c39d0e3cade6957ff741db18c9aa1defedd330e3 /export-image | |
parent | 08405eb792c66acf7f4fa4d11abf31bb3da5ab13 (diff) |
Allow custom deploy zip filename
Diffstat (limited to 'export-image')
-rwxr-xr-x | export-image/04-finalise/01-run.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/export-image/04-finalise/01-run.sh b/export-image/04-finalise/01-run.sh index eee9c5c..f5a5fd8 100755 --- a/export-image/04-finalise/01-run.sh +++ b/export-image/04-finalise/01-run.sh @@ -74,10 +74,10 @@ unmount_image "${IMG_FILE}" mkdir -p "${DEPLOY_DIR}" -rm -f "${DEPLOY_DIR}/image_${IMG_DATE}-${IMG_NAME}${IMG_SUFFIX}.zip" +rm -f "${DEPLOY_DIR}/${ZIP_FILENAME}.zip" pushd "${STAGE_WORK_DIR}" > /dev/null -zip "${DEPLOY_DIR}/image_${IMG_DATE}-${IMG_NAME}${IMG_SUFFIX}.zip" \ +zip "${DEPLOY_DIR}/${ZIP_FILENAME}.zip" \ "$(basename "${IMG_FILE}")" popd > /dev/null |