From 2a48a6d6157e0e17964eea70cfa2a99cad6dae7e Mon Sep 17 00:00:00 2001 From: Florian Uhlig <f.uhlig@gsi.de> Date: Wed, 15 Sep 2021 08:35:02 +0200 Subject: [PATCH] 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 /. --- scripts/check-licence-header.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/check-licence-header.sh b/scripts/check-licence-header.sh index df0a5d1b03..a2e33a94e3 100755 --- a/scripts/check-licence-header.sh +++ b/scripts/check-licence-header.sh @@ -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++)) -- GitLab