Current `grep` command doesn't work in macOS with GNU bash, version 3.2.57(1)-release-(arm64-apple-darwin21)
Signed-off-by: Mike Maslenkin <mike.maslen...@gmail.com> --- .github/workflows/uncrustify-check.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/uncrustify-check.sh b/.github/workflows/uncrustify-check.sh index c94b892634b8..7c1765cff5ba 100755 --- a/.github/workflows/uncrustify-check.sh +++ b/.github/workflows/uncrustify-check.sh @@ -31,7 +31,7 @@ fi cd "$REPO_PATH" FAILURE=0 -CHANGED_FILES=$(git diff --name-only HEAD~$NO_COMMITS..HEAD | grep '\(\.c$\|\.h$\)') +CHANGED_FILES=$(git diff --name-only HEAD~$NO_COMMITS..HEAD | grep -e '\.c$' -e '\.h') if [ -z "$CHANGED_FILES" ] then echo "No c or h file to run uncrustify check" -- 2.32.0 (Apple Git-132) -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#109232): https://edk2.groups.io/g/devel/message/109232 Mute This Topic: https://groups.io/mt/101667895/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-