(scripts) trailing whitespace fix
This commit is contained in:
@@ -6,7 +6,7 @@ function remove-whitespace {
|
|||||||
exclude_paths=(
|
exclude_paths=(
|
||||||
".git"
|
".git"
|
||||||
)
|
)
|
||||||
exclude_files=(
|
exclude_extensions=(
|
||||||
"*.lst"
|
"*.lst"
|
||||||
"*.map"
|
"*.map"
|
||||||
"*.svd"
|
"*.svd"
|
||||||
@@ -97,16 +97,16 @@ function remove-whitespace {
|
|||||||
fi
|
fi
|
||||||
done
|
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}")
|
excludes+=("-not" "-name" "${arg}")
|
||||||
done
|
done
|
||||||
|
|
||||||
for arg in "${path_args[@]}"; do
|
for arg in "${path_args[@]}"; do
|
||||||
files=("$(
|
files=("$(
|
||||||
find "${arg}" \
|
find "${arg}" \
|
||||||
${excludes[@]} \
|
"${excludes[@]}" \
|
||||||
-type f \
|
-type f \
|
||||||
-exec grep -EIq "${grep_regex}" {} \; \
|
-exec grep -EIq "${grep_regex}" {} \; \
|
||||||
-print
|
-print
|
||||||
|
|||||||
Reference in New Issue
Block a user