[scripts] do not generate sha256sum for .sha256 files
This commit is contained in:
parent
41dc303441
commit
4f451be2c3
@ -23,6 +23,11 @@ fi
|
|||||||
# files inside /boot now
|
# files inside /boot now
|
||||||
if [ -d "${CDROOT_DIR}/boot" ]; then
|
if [ -d "${CDROOT_DIR}/boot" ]; then
|
||||||
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