[scripts] delete existing .sha256 files from CDROOT_DIR/boot
This commit is contained in:
parent
4f451be2c3
commit
157a9468ba
@ -22,12 +22,9 @@ fi
|
|||||||
|
|
||||||
# files inside /boot now
|
# files inside /boot now
|
||||||
if [ -d "${CDROOT_DIR}/boot" ]; then
|
if [ -d "${CDROOT_DIR}/boot" ]; then
|
||||||
|
# delete existing .sha256 files
|
||||||
|
find "${CDROOT_DIR}/boot" -name "*.sha256" -delete
|
||||||
for bootfile in "${CDROOT_DIR}"/boot/* ; do
|
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
|
if [ -f "${bootfile}" ]; then
|
||||||
echo "Doing ${bootfile}..."
|
echo "Doing ${bootfile}..."
|
||||||
boot_dir=$(dirname "${bootfile}")
|
boot_dir=$(dirname "${bootfile}")
|
||||||
|
Loading…
Reference in New Issue
Block a user