[scripts] post_mmc_image_script.sh: make sure to not leave zombies (*.img.md5)

This commit is contained in:
Fabio Erculiani 2012-04-30 17:22:40 +02:00
parent 2f8f58baf4
commit 534d6e418e
1 changed files with 2 additions and 0 deletions

View File

@ -26,6 +26,8 @@ chmod 644 "${COMPRESSED_IMAGE_PATH}" || exit 1
cd "$(dirname "${COMPRESSED_IMAGE_PATH}")" || exit 1
img_name=$(basename "${COMPRESSED_IMAGE_PATH}")
# make sure to not leave zombies
rm -f "${img_name}.md5"
md5sum "${img_name}" > "${COMPRESSED_IMAGE_CHECKSUM_PATH}" || exit 1
echo "All done"