store old fname using echo

This commit is contained in:
Krishna Vedala 2020-05-29 17:40:45 -04:00
parent 48bf52907f
commit 1d11ab4284

View File

@ -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