From b5f4637cc7d5419104155576c077438a18ad11b3 Mon Sep 17 00:00:00 2001 From: Krishna Vedala <7001608+kvedala@users.noreply.github.com> Date: Fri, 29 May 2020 18:14:56 -0400 Subject: [PATCH] try escape -quote again --- .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 1f9dcb98b..8c56fbed6 100644 --- a/.github/workflows/clang-format.yml +++ b/.github/workflows/clang-format.yml @@ -26,11 +26,11 @@ jobs: run: | for fname in $(find . -type f -name '*.cpp' -o -name '*.h') do - new_fname="$(echo -e ${fname} | tr ' ' '_')" - new_fname="$(echo -e ${new_fname} | tr 'A-Z' 'a-z')" + new_fname="$(echo -e \"${fname}\" | tr ' ' '_')" + new_fname="$(echo -e \"${new_fname}\" | tr 'A-Z' 'a-z')" if [ $fname != $new_fname ] then - echo -e $fname" --> "$new_fname + echo -e "\"$fname\" --> $new_fname" git mv "$fname" $new_fname fi done