Skip to content
Snippets Groups Projects
Commit 2f7291d5 authored by Eoin Clerkin's avatar Eoin Clerkin
Browse files

Ignore empty files in licence check

parent af0b2c0d
No related branches found
No related tags found
1 merge request!1338CAD conversion tools and procedure
......@@ -91,7 +91,7 @@ for FILE in $CHANGED_FILES; do
for EXCLUDE in "${excludes[@]}"; do
FILE=$(echo $FILE | egrep -v "$EXCLUDE")
done
if [[ -n $FILE && -f $FILE ]]; then
if [[ -n $FILE && -f $FILE && -s $FILE ]]; then
licenceHeaderCheck $FILE
fi
done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment