Skip to content
Snippets Groups Projects
Commit 2a48a6d6 authored by Administrator's avatar Administrator Committed by Florian Uhlig
Browse files

Improve script

Add / as allowed character in the regex which checks the copyright statement.
This is needed since we have cases with two institutes and two cities in the
copyright statement which are separated by a /.
parent 4bc7013a
No related branches found
No related tags found
1 merge request!491Improve script
Pipeline #13091 passed
......@@ -15,7 +15,7 @@ licenceHeaderCheck () {
FILE_CODE="1"
fi
head -n 1 $1 | grep -q '\/\* Copyright (C) [0-9-]* [a-zA-Z -]*, [a-zA-Z]*'
head -n 1 $1 | grep -q '\/\* Copyright (C) [0-9-]* [a-zA-Z -/]*, [a-zA-Z/]*'
if [ $? -ne 0 ]; then
echo "[ERROR] $1; line 1 has syntax errors in its licence header."
((RETURN_CODE++))
......
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