Skip to content

Commit ce74d31

Browse files
committed
Fix command
1 parent fe8b5ca commit ce74d31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/scripts/find_files

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ main() {
4444

4545
# On Mac OSX, in order to use `|` and other regular expression operators, we need to use enhanced regular expression syntax (-E); see https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man7/re_format.7.html#//apple_ref/doc/man/7/re_format.
4646
if [[ "${kernel}" == "Darwin" ]]; then
47-
files=$(find -E "${root_dir}" -type f -name "${files_pattern}" -regex "${files_pattern}" -not -path "${root_dir}/.*" -not -path "${node_modules}/*" -not -path "${build_dir}/*" -not -path "${reports_dir}/*" -not -path "${root_dir}/**/${build_folder}/*")
47+
files=$(find -E "${root_dir}" -type f -name "${files_pattern}" -regex "${files_filter}" -not -path "${root_dir}/.*" -not -path "${node_modules}/*" -not -path "${build_dir}/*" -not -path "${reports_dir}/*" -not -path "${root_dir}/**/${build_folder}/*")
4848
else
49-
files=$(find "${root_dir}" -regextype posix-extended -type f -name "${files_pattern}" -regex "${files_pattern}" -not -path "${root_dir}/.*" -not -path "${node_modules}/*" -not -path "${build_dir}/*" -not -path "${reports_dir}/*" -not -path "${root_dir}/**/${build_folder}/*")
49+
files=$(find "${root_dir}" -regextype posix-extended -type f -name "${files_pattern}" -regex "${files_filter}" -not -path "${root_dir}/.*" -not -path "${node_modules}/*" -not -path "${build_dir}/*" -not -path "${reports_dir}/*" -not -path "${root_dir}/**/${build_folder}/*")
5050
fi
5151
echo "${files}"
5252
}

0 commit comments

Comments
 (0)