File tree 1 file changed +6
-2
lines changed
.github/workflows/scripts
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 41
41
paths_with_missing_license=( )
42
42
43
43
if [[ -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
+ dyanmic_exclude_list=$( tr ' \n' ' \0' < .licenseignore | xargs -0 -I% printf ' ":(exclude)%" ' )
46
+ exclude_list=$static_exclude_list$dyanmic_exclude_list
45
47
else
46
- file_paths= $( git ls-files " :(exclude).license_header_template" )
48
+ exclude_list= " :(exclude).license_header_template"
47
49
fi
48
50
51
+ file_paths=$( echo " $exclude_list " | xargs git ls-files)
52
+
49
53
50
54
while IFS= read -r file_path; do
51
55
file_basename=$( basename -- " ${file_path} " )
You can’t perform that action at this time.
0 commit comments