mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-24 08:05:13 +08:00
fix: sha256sum: command not found on macOS
This commit is contained in:
parent
97bf8b8512
commit
2527b2a8c3
1 changed files with 6 additions and 1 deletions
|
@ -92,7 +92,12 @@ sha=$(
|
|||
cd "$pm3path" || return
|
||||
# did we find the src?
|
||||
[ -f armsrc/appmain.c ] || return
|
||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
# macOS
|
||||
ls armsrc/*.[ch] common_arm/*.[ch]|grep -E -v "(disabled|version_pm3|fpga_version_info)"|sort|xargs shasum -a 256 -t|shasum -a 256|cut -c -9
|
||||
else
|
||||
ls armsrc/*.[ch] common_arm/*.[ch]|grep -E -v "(disabled|version_pm3|fpga_version_info)"|sort|xargs sha256sum -t|sha256sum|cut -c -9
|
||||
fi
|
||||
)
|
||||
if [ "$sha" = "" ]; then
|
||||
sha="no sha256"
|
||||
|
|
Loading…
Reference in a new issue