Skip to content

Commit

Permalink
use perl instead of sed in style checks for portability to MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
baperry2 committed Sep 3, 2024
1 parent de4dc97 commit 6c41197
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/style/check_tabs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ find . -type d \( -name .git \
-a ! -name "*.lex.h" -a ! -name "*.lex.nolint.H" \) \
\) \
-exec grep -Iq . {} \; \
-exec sed -i 's/\t/\ \ \ \ /g' {} +
-exec perl -i -pe's/\t/\ \ \ \ /g' {} +

gitdiff=`git diff`

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/style/check_trailing_whitespaces.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ find . -type d \( -name .git \
-a ! -name "*.lex.h" -a ! -name "*.lex.nolint.H" \) \
\) \
-exec grep -Iq . {} \; \
-exec sed -i 's/[[:blank:]]\+$//g' {} +
-exec perl -i -pe's/[[:blank:]]+$//g' {} +

gitdiff=`git diff`

Expand Down

0 comments on commit 6c41197

Please sign in to comment.