From c0dcc91276e17be5dc55bc1397bafbdae6bce604 Mon Sep 17 00:00:00 2001 From: Krishna Vedala <7001608+kvedala@users.noreply.github.com> Date: Fri, 29 May 2020 17:52:50 -0400 Subject: [PATCH] remove old_fname --- .github/workflows/clang-format.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml index 1a9d5ccfc..50f2169da 100644 --- a/.github/workflows/clang-format.yml +++ b/.github/workflows/clang-format.yml @@ -26,13 +26,12 @@ jobs: run: | for fname in $(find . -name '*.cpp' -o -name '*.h') do - old_fname="$(echo -e ${fname})" new_fname="$(echo -e "${fname}" | tr ' ' '_')" new_fname="$(echo -e "${new_fname}" | tr 'A-Z' 'a-z')" - if [ $old_fname != $new_fname ] + if [ $fname != $new_fname ] then - echo '"${old_fname}" --> ${new_fname}' - git mv \"${old_fname}\" ${new_fname} + echo '"${fname}" --> ${new_fname}' + git mv "${fname}" ${new_fname} fi done git commit -am "formatting filenames $GITHUB_SHA" || true