mkversion: Change grep by cut because of weird grep behavior on OSX

This commit is contained in:
Philippe Teuwen 2022-02-27 12:40:10 +01:00
parent c7cb449eb6
commit 738963306e

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|grep -o '^.........'
ls armsrc/*.[ch] common_arm/*.[ch]|grep -E -v "(disabled|version_pm3|fpga_version_info)"|xargs sha256sum|sha256sum|cut -c -9
)
cat <<EOF
#include "common.h"