From 1d11ab428426480f5cf2c775e7dfe9fd35c1ecd4 Mon Sep 17 00:00:00 2001 From: Krishna Vedala <7001608+kvedala@users.noreply.github.com> Date: Fri, 29 May 2020 17:40:45 -0400 Subject: [PATCH] store old fname using echo --- .github/workflows/clang-format.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml index f3940c5b6..33eed8c28 100644 --- a/.github/workflows/clang-format.yml +++ b/.github/workflows/clang-format.yml @@ -26,11 +26,11 @@ jobs: run: | for fname in $(find . -name '*.cpp' -o -name '*.h') do - old_fname="${fname}" + old_fname="$(echo -e ${fname})" new_fname="$(echo -e "${fname}" | tr ' ' '_')" new_fname="$(echo -e "${new_fname}" | tr 'A-Z' 'a-z')" - echo $new_fname - git mv $old_fname $new_fname + echo "${old_fname} --> ${new_fname}" + git mv ${old_fname} ${new_fname} done git commit -am "formatting filenames $GITHUB_SHA" || true - name: Clang Formatter