From 157a9468ba2da96e343a2da7b35abede832cf7bb Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Tue, 4 Sep 2012 17:49:17 +0200 Subject: [PATCH] [scripts] delete existing .sha256 files from CDROOT_DIR/boot --- scripts/pre_iso_script_livecd_hash.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/scripts/pre_iso_script_livecd_hash.sh b/scripts/pre_iso_script_livecd_hash.sh index 126795c..0c695ad 100755 --- a/scripts/pre_iso_script_livecd_hash.sh +++ b/scripts/pre_iso_script_livecd_hash.sh @@ -22,12 +22,9 @@ fi # files inside /boot now if [ -d "${CDROOT_DIR}/boot" ]; then + # delete existing .sha256 files + find "${CDROOT_DIR}/boot" -name "*.sha256" -delete for bootfile in "${CDROOT_DIR}"/boot/* ; do - endswith_sha256=$(echo "${bootfile}" | grep "\.sha256$") - if [ -n "${endswith_sha256}" ]; then - # skip .sha256 file - continue - fi if [ -f "${bootfile}" ]; then echo "Doing ${bootfile}..." boot_dir=$(dirname "${bootfile}")