Commit ec5392e9 authored by Administrator's avatar Administrator Committed by Florian Uhlig
Browse files

Improve license header test script

Add the external directories to the list of directories which shouln't be
Only test a file that exists. This solves a problem when files are removed
from the repository.
parent 1f30cd30
......@@ -9,6 +9,10 @@
# For all the directories/files listed in the array an explanation should be given.
# The directory external is excluded from the check since this directory
# contains code which isn't part of CbmRoot but external dependencies so
# we don't have to test for our license header
# The directory is excluded since the files have a license header
# inherited from the ALICE experiment. The code was copied by the
# original author when he started working for CBM.
......@@ -83,7 +87,7 @@ for FILE in $CHANGED_FILES; do
for EXCLUDE in "${excludes[@]}"; do
FILE=$(echo $FILE | egrep -v "$EXCLUDE")
if [[ -n $FILE ]]; then
if [[ -n $FILE && -f $FILE ]]; then
licenceHeaderCheck $FILE
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment