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