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"