Skip to content

Commit

Permalink
Make mkversion.sh POSIX compliant (dash complains about [[)
Browse files Browse the repository at this point in the history
  • Loading branch information
doegox committed Aug 27, 2024
1 parent 9406360 commit 06e98f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/mkversion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ sha=$(
cd "$pm3path" || return
# did we find the src?
[ -f armsrc/appmain.c ] || return
if [[ "$OSTYPE" == "darwin"* ]]; then
if [ "${OSTYPE#darwin}" != "$OSTYPE" ]; 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
Expand Down

0 comments on commit 06e98f4

Please sign in to comment.