From 9f7fcc686ccd482dc7465381da8e61fb35a0298f Mon Sep 17 00:00:00 2001 From: mattijs Date: Wed, 17 Aug 2011 14:53:46 +0100 Subject: [PATCH] BUG: pre-commit-hook: was expecting YYYY-YYYY instead of just YYYY --- bin/tools/pre-commit-hook | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/tools/pre-commit-hook b/bin/tools/pre-commit-hook index 4265cf1bf5..95ca2278be 100755 --- a/bin/tools/pre-commit-hook +++ b/bin/tools/pre-commit-hook @@ -273,7 +273,7 @@ checkCopyright() for f in $fileList do - 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