File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
.github/workflows/scripts Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 4141paths_with_missing_license=( )
4242
4343if [[ -f .licenseignore ]]; then
44- file_paths=$( tr ' \n' ' \0' < .licenseignore | xargs -0 -I% printf ' ":(exclude)%" ' | xargs git ls-files " :(exclude).licenseignore" " :(exclude).license_header_template" )
44+ static_exclude_list=' ":(exclude).licenseignore" ":(exclude).license_header_template" '
45+ dynamic_exclude_list=$( tr ' \n' ' \0' < .licenseignore | xargs -0 -I% printf ' ":(exclude)%" ' )
46+ exclude_list=$static_exclude_list$dynamic_exclude_list
4547else
46- file_paths= $( git ls-files " :(exclude).license_header_template" )
48+ exclude_list= " :(exclude).license_header_template"
4749fi
4850
51+ file_paths=$( echo " $exclude_list " | xargs git ls-files)
4952
5053while IFS= read -r file_path; do
5154 file_basename=$( basename -- " ${file_path} " )
You can’t perform that action at this time.
0 commit comments