We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6aa8cf2 commit 9f7c2ddCopy full SHA for 9f7c2dd
.github/workflows/scripts/check-license-header.sh
@@ -40,7 +40,12 @@ fi
40
41
paths_with_missing_license=( )
42
43
-file_paths=$(tr '\n' '\0' < .licenseignore | xargs -0 -I% printf '":(exclude)%" '| xargs git ls-files)
+file_excludes=".license_header_template
44
+.licenseignore"
45
+if [ -f .licenseignore ]; then
46
+ file_excludes=$file_excludes\n$(cat .licenseignore)
47
+fi
48
+file_paths=$(echo "$file_excludes" | tr '\n' '\0' | xargs -0 -I% printf '":(exclude)%" '| xargs git ls-files)
49
50
while IFS= read -r file_path; do
51
file_basename=$(basename -- "${file_path}")
0 commit comments