Sort filenames before hashing and force hashing in text mode to avoid inconsistencies

This commit is contained in:
Doridian 2022-03-26 23:03:07 -07:00
commit cdd17a06b7
2 changed files with 2 additions and 1 deletions

View file

@ -63,7 +63,7 @@ sha=$(
cd "$pm3path" || return
# did we find the src?
[ -f armsrc/appmain.c ] || return
ls armsrc/*.[ch] common_arm/*.[ch]|grep -E -v "(disabled|version_pm3|fpga_version_info)"|xargs sha256sum|sha256sum|cut -c -9
ls armsrc/*.[ch] common_arm/*.[ch]|grep -E -v "(disabled|version_pm3|fpga_version_info)"|sort|xargs sha256sum -t|sha256sum|cut -c -9
)
if [ "$sha" = "" ]; then
sha="no sha256"