mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
remove old_fname
This commit is contained in:
parent
29c066de04
commit
c0dcc91276
7
.github/workflows/clang-format.yml
vendored
7
.github/workflows/clang-format.yml
vendored
@ -26,13 +26,12 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
for fname in $(find . -name '*.cpp' -o -name '*.h')
|
for fname in $(find . -name '*.cpp' -o -name '*.h')
|
||||||
do
|
do
|
||||||
old_fname="$(echo -e ${fname})"
|
|
||||||
new_fname="$(echo -e "${fname}" | tr ' ' '_')"
|
new_fname="$(echo -e "${fname}" | tr ' ' '_')"
|
||||||
new_fname="$(echo -e "${new_fname}" | tr 'A-Z' 'a-z')"
|
new_fname="$(echo -e "${new_fname}" | tr 'A-Z' 'a-z')"
|
||||||
if [ $old_fname != $new_fname ]
|
if [ $fname != $new_fname ]
|
||||||
then
|
then
|
||||||
echo '"${old_fname}" --> ${new_fname}'
|
echo '"${fname}" --> ${new_fname}'
|
||||||
git mv \"${old_fname}\" ${new_fname}
|
git mv "${fname}" ${new_fname}
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
git commit -am "formatting filenames $GITHUB_SHA" || true
|
git commit -am "formatting filenames $GITHUB_SHA" || true
|
||||||
|
Loading…
Reference in New Issue
Block a user