mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
find command using IFS instead
This commit is contained in:
parent
1d24b96ad6
commit
0e130658b5
3
.github/workflows/clang-format.yml
vendored
3
.github/workflows/clang-format.yml
vendored
@ -24,7 +24,8 @@ jobs:
|
|||||||
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
|
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
|
||||||
- name: Filename Formatter
|
- name: Filename Formatter
|
||||||
run: |
|
run: |
|
||||||
find . -type f -name '*.cpp' -o -name '*.h' -print0 | while read -d $'\0' fname
|
IFS=$'\n'
|
||||||
|
for fname in `find . -type f -name '*.cpp' -o -name '*.h'`
|
||||||
do
|
do
|
||||||
echo "${fname}"
|
echo "${fname}"
|
||||||
new_fname=`echo ${fname} | tr ' ' '_'`
|
new_fname=`echo ${fname} | tr ' ' '_'`
|
||||||
|
Loading…
Reference in New Issue
Block a user