Skip to content

Commit fd04b11

Browse files
authored
Merge pull request #82 from rnro/licence_check_ignore_symlinks
License header check ignore symlinks
2 parents f20d21e + 1c39083 commit fd04b11

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/scripts/check-license-header.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ file_paths=$(echo "$exclude_list" | xargs git ls-files)
5353
while IFS= read -r file_path; do
5454
file_basename=$(basename -- "${file_path}")
5555
file_extension="${file_basename##*.}"
56+
if [[ -L "${file_path}" ]]; then
57+
continue # Ignore symbolic links
58+
fi
5659

5760
# shellcheck disable=SC2001 # We prefer to use sed here instead of bash search/replace
5861
case "${file_extension}" in

0 commit comments

Comments
 (0)