(scripts) trailing whitespace fix

This commit is contained in:
scbj
2026-07-10 09:27:24 +02:00
parent 091259da79
commit 26905a484d
+4 -4
View File
@@ -6,7 +6,7 @@ function remove-whitespace {
exclude_paths=(
".git"
)
exclude_files=(
exclude_extensions=(
"*.lst"
"*.map"
"*.svd"
@@ -97,16 +97,16 @@ function remove-whitespace {
fi
done
excludes+=(")" "-type d" "-prune" "-o")
excludes+=(")" "-type" "d" "-prune" "-o")
for arg in "${exclude_files[@]}"; do
for arg in "${exclude_extensions[@]}"; do
excludes+=("-not" "-name" "${arg}")
done
for arg in "${path_args[@]}"; do
files=("$(
find "${arg}" \
${excludes[@]} \
"${excludes[@]}" \
-type f \
-exec grep -EIq "${grep_regex}" {} \; \
-print