Fixed format.sh script

This commit is contained in:
gabime 2024-01-14 12:44:52 +02:00
parent d61f0a5d5e
commit fbd1ebcebf

View File

@ -2,7 +2,7 @@
cd "$(dirname "$0")"/..
pwd
find_sources="find include src tests example bench -not ( -path include/spdlog/fmt/bundled -prune ) -type f -name *\.h -o -name *\.cpp"
find_sources="find include src tests example bench -type f -name *\.h -o -name *\.cpp"
echo -n "Running dos2unix "
$find_sources | xargs -I {} sh -c "dos2unix '{}' 2>/dev/null; echo -n '.'"
echo