mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: pre-commit-hook: was expecting YYYY-YYYY instead of just YYYY
This commit is contained in:
@ -273,7 +273,7 @@ checkCopyright()
|
|||||||
|
|
||||||
for f in $fileList
|
for f in $fileList
|
||||||
do
|
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
|
if [ "$year" != "" ] && [ "$year" != "$sYear" ]; then
|
||||||
echo "Updated copyright for: $f"
|
echo "Updated copyright for: $f"
|
||||||
sed -i "s/$sYear OpenFOAM/$year OpenFOAM/g" $f
|
sed -i "s/$sYear OpenFOAM/$year OpenFOAM/g" $f
|
||||||
|
|||||||
Reference in New Issue
Block a user