diff --git a/scripts/trailing-whitespace.sh b/scripts/trailing-whitespace.sh index da04b80..1e889ef 100755 --- a/scripts/trailing-whitespace.sh +++ b/scripts/trailing-whitespace.sh @@ -64,8 +64,8 @@ function remove-whitespace { for arg in ${path_args[@]}; do files+=($( find "${arg}" \ - "${exclude_paths[@]/#/-not -path }" \ - "${exclude_files[@]/#/-not -name }" \ + ${exclude_paths[@]/#/-not -path } \ + ${exclude_files[@]/#/-not -name } \ -type f \ -exec grep -EIq "${grep_regex}" {} \; \ -print