[scripts] delete existing .sha256 files from CDROOT_DIR/boot

This commit is contained in:
Fabio Erculiani 2012-09-04 17:49:17 +02:00
parent 4f451be2c3
commit 157a9468ba

View File

@ -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}")