From 43efbf3b62b7a50edc3af60a4c0a76fb8eed9857 Mon Sep 17 00:00:00 2001 From: netniV Date: Tue, 29 Mar 2022 12:47:21 +0000 Subject: [PATCH] Update find to use loop and extension list --- bootstrap | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bootstrap b/bootstrap index 33e923a..4a9a4e7 100755 --- a/bootstrap +++ b/bootstrap @@ -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