diff --git a/.github/workflows/style/check_tabs.sh b/.github/workflows/style/check_tabs.sh index f4418644e3a..e8bb9f14bc3 100755 --- a/.github/workflows/style/check_tabs.sh +++ b/.github/workflows/style/check_tabs.sh @@ -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` diff --git a/.github/workflows/style/check_trailing_whitespaces.sh b/.github/workflows/style/check_trailing_whitespaces.sh index a0f941f8c2b..a4ece8a0ee4 100755 --- a/.github/workflows/style/check_trailing_whitespaces.sh +++ b/.github/workflows/style/check_trailing_whitespaces.sh @@ -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`