From d27039c2ee0f5fa389efc2f5106f10731cc3bced Mon Sep 17 00:00:00 2001 From: Krishna Vedala <7001608+kvedala@users.noreply.github.com> Date: Fri, 29 May 2020 15:12:03 -0400 Subject: [PATCH] loop file by file --- .github/workflows/clang-format.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml index b4deb3cf..77e9e9c0 100644 --- a/.github/workflows/clang-format.yml +++ b/.github/workflows/clang-format.yml @@ -23,7 +23,7 @@ jobs: export line2='IndentWidth: 4, TabWidth: 4, BreakBeforeBraces: Allman,' export line3='AllowShortIfStatementsOnASingleLine: false, IndentCaseLabels: false,' export line4='ColumnLimit: 80, AccessModifierOffset: -4 }' - find . -name '*.c' -o -name '*.h' | xargs clang-format -i --style="$line1 $line2 $line3 $line4" + for fname in $(find . -name '*.c' -o -name '*.h'); do clang-format -i --style="$line1 $line2 $line3 $line4"; done - name: test run: git diff