Skip to content

Commit

Permalink
use perl instead of sed for style checks for portability for Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
baperry2 committed Sep 4, 2024
1 parent 1e6b3ff commit 1d1be9b
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 @@ -21,7 +21,7 @@ find . -type d \( -name .git \
-a ! -name "*.lex.h" -a ! -name "*.lex.cpp" \) \
\) \
-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 @@ -21,7 +21,7 @@ find . -type d \( -name .git \
-a ! -name "*.lex.h" -a ! -name "*.lex.cpp" \) \
\) \
-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 1d1be9b

Please sign in to comment.