We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bd0abce + d114586 commit 85e54b8Copy full SHA for 85e54b8
.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$(printf '\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