mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 04:50:12 -07:00
Make mkversion.sh POSIX compliant (dash complains about [[)
This commit is contained in:
parent
94063607ae
commit
06e98f4643
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ sha=$(
|
||||||
cd "$pm3path" || return
|
cd "$pm3path" || return
|
||||||
# did we find the src?
|
# did we find the src?
|
||||||
[ -f armsrc/appmain.c ] || return
|
[ -f armsrc/appmain.c ] || return
|
||||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
if [ "${OSTYPE#darwin}" != "$OSTYPE" ]; then
|
||||||
# macOS
|
# 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
|
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
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue