(scripts) trailing whitespace fix
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user