[scripts] do not generate sha256sum for .sha256 files

This commit is contained in:
Fabio Erculiani 2012-09-04 17:48:10 +02:00
parent 41dc303441
commit 4f451be2c3
1 changed files with 5 additions and 0 deletions

View File

@ -23,6 +23,11 @@ fi
# files inside /boot now
if [ -d "${CDROOT_DIR}/boot" ]; then
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}")