From 45f5bb65d0a78026a7ad7375afdf35293b41e001 Mon Sep 17 00:00:00 2001 From: Krishna Vedala <7001608+kvedala@users.noreply.github.com> Date: Fri, 29 May 2020 17:47:40 -0400 Subject: [PATCH] use double quote for old filename --- .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 5fe5e589d..a8ba8a273 100644 --- a/.github/workflows/clang-format.yml +++ b/.github/workflows/clang-format.yml @@ -29,10 +29,10 @@ jobs: 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 [ $old_fname != $new_fname ] then echo "'${old_fname}' --> ${new_fname}" - git mv '${old_fname}' ${new_fname} + git mv "${old_fname}" ${new_fname} fi done git commit -am "formatting filenames $GITHUB_SHA" || true