Skip to content
Snippets Groups Projects

Improve script

Merged Florian Uhlig requested to merge f.uhlig/cbmroot:fix_license_header into master
All threads resolved!
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -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++))
Loading