Remove original images when creating zip (#1461)

Other compression methods remove the original image file at compression.
Add the -m (move) command to zip to do the same when compressing with
zip. This saves some space in the builds image/release directory.
This commit is contained in:
Stefan Agner 2021-07-14 09:51:39 +02:00 committed by GitHub
parent ad8ee5610d
commit c58a568f64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -324,5 +324,5 @@ function convert_disk_image_zip() {
local hdd_img="$(hassos_image_name "${hdd_ext}")" local hdd_img="$(hassos_image_name "${hdd_ext}")"
rm -f "${hdd_img}.zip" rm -f "${hdd_img}.zip"
zip -j -q -r "${hdd_img}.zip" "${hdd_img}" zip -j -m -q -r "${hdd_img}.zip" "${hdd_img}"
} }