From 534d6e418ea408ad8acdf5e5ebc561441b0edc28 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Mon, 30 Apr 2012 17:22:40 +0200 Subject: [PATCH] [scripts] post_mmc_image_script.sh: make sure to not leave zombies (*.img.md5) --- scripts/post_mmc_image_script.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/post_mmc_image_script.sh b/scripts/post_mmc_image_script.sh index f05d14f..ec60c80 100755 --- a/scripts/post_mmc_image_script.sh +++ b/scripts/post_mmc_image_script.sh @@ -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"