From 0ea90eb3bd10aae256b01abd431e2b82f963abe6 Mon Sep 17 00:00:00 2001 From: Krishna Vedala <7001608+kvedala@users.noreply.github.com> Date: Fri, 29 May 2020 17:30:55 -0400 Subject: [PATCH] fixed trim and assign syntax --- .github/workflows/clang-format.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml index cea261622..6071aef07 100644 --- a/.github/workflows/clang-format.yml +++ b/.github/workflows/clang-format.yml @@ -26,8 +26,8 @@ jobs: run: | for fname in $(find . -name '*.cpp' -o -name '*.h') do - $new_fname = tr ' ' '_' $fname - $new_fname = tr 'A-Z' 'a-z' $new_fname + new_fname="$(echo -e "${fname}" | tr ' ' '_')" + new_fname="$(echo -e "${new_fname}"tr'A-Z' 'a-z')" echo $new_fname done git commit -am "formatting filenames $GITHUB_SHA" || true