Skip to content

Commit

Permalink
Merge pull request #1786 from baperry2/perl-style
Browse files Browse the repository at this point in the history
use perl instead of sed for style checks for portability for Mac
  • Loading branch information
baperry2 authored Sep 4, 2024
2 parents 1e6b3ff + 1d1be9b commit 2e9c874
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 2e9c874

Please sign in to comment.