Skip to content

Commit

Permalink
Update find to use loop and extension list
Browse files Browse the repository at this point in the history
  • Loading branch information
netniV committed Mar 29, 2022
1 parent 9135def commit 43efbf3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,10 @@ rm -rf autom4te.cache .deps
# Make sure all files are unix formatted files
which dos2unix > /dev/null 2>&1
if [ $? -eq 0 ]; then
find . -name \*.h -exec dos2unix {} \; > /dev/null 2>&1
find . -name \*.c -exec dos2unix {} \; > /dev/null 2>&1
find . -name \*.sh -exec dos2unix {} \; > /dev/null 2>&1
for e in $(echo "ac am c h in md mdlrc rb sh yml"); do
echo "INFO: Ensuring UNIX format for *.$e"
find . -type f -name \*.$e -exec dos2unix --d2u \{\} \; > /dev/null 2>&1
done
fi

# Prepare a build state
Expand Down

1 comment on commit 43efbf3

@TheWitness
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess that works too ;)

Please sign in to comment.