Commit 9f7fcc68 authored by mattijs's avatar mattijs
Browse files

BUG: pre-commit-hook: was expecting YYYY-YYYY instead of just YYYY

parent cd8e5c54
......@@ -273,7 +273,7 @@ checkCopyright()
for f in $fileList
sYear=`grep "Copyright.*OpenFOAM" $f | sed 's/[^0-9]//g' | cut -c 5-9`
sYear=`grep "Copyright.*OpenFOAM" $f | sed 's/[^0-9]//g'`
if [ "$year" != "" ] && [ "$year" != "$sYear" ]; then
echo "Updated copyright for: $f"
sed -i "s/$sYear OpenFOAM/$year OpenFOAM/g" $f
Markdown is supported
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