[scripts] post_mmc_image_script.sh: remove uncompressed image once compressed

This commit is contained in:
Fabio Erculiani 2011-12-29 21:08:42 +01:00
parent 712fc46a5b
commit 6f674c5fb6

View File

@ -23,6 +23,10 @@ xz --compress --force "${IMAGE_PATH}" || exit 1
cd "$(dirname "${COMPRESSED_IMAGE_PATH}")" || exit 1
img_name=$(basename "${COMPRESSED_IMAGE_PATH}")
md5sum "${img_name}" > "${COMPRESSED_IMAGE_CHECKSUM_PATH}"
md5sum "${img_name}" > "${COMPRESSED_IMAGE_CHECKSUM_PATH}" || exit 1
# remove uncompressed image
rm "${IMAGE_PATH}" "${IMAGE_CHECKSUM_PATH}"
exit ${?}