From 738963306ec9858be8d47bdb7415e52ee8787b5c Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Sun, 27 Feb 2022 12:40:10 +0100 Subject: [PATCH] mkversion: Change grep by cut because of weird grep behavior on OSX --- tools/mkversion.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/mkversion.sh b/tools/mkversion.sh index f950d9f19..a83c94e71 100755 --- a/tools/mkversion.sh +++ b/tools/mkversion.sh @@ -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 <