From 0e130658b570f9e5d09df2c8da8520b0c70128e0 Mon Sep 17 00:00:00 2001 From: Krishna Vedala <7001608+kvedala@users.noreply.github.com> Date: Fri, 29 May 2020 18:52:01 -0400 Subject: [PATCH] find command using IFS instead --- .github/workflows/clang-format.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml index b50b8717e..44260450a 100644 --- a/.github/workflows/clang-format.yml +++ b/.github/workflows/clang-format.yml @@ -24,7 +24,8 @@ jobs: git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY - name: Filename Formatter run: | - find . -type f -name '*.cpp' -o -name '*.h' -print0 | while read -d $'\0' fname + IFS=$'\n' + for fname in `find . -type f -name '*.cpp' -o -name '*.h'` do echo "${fname}" new_fname=`echo ${fname} | tr ' ' '_'`