Skip to content
Snippets Groups Projects
Commit 18b63365 authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

Fixed header script

instead of looking for last commit, sort them by year
parent 94c1b721
No related branches found
No related tags found
No related merge requests found
...@@ -33,6 +33,7 @@ then ...@@ -33,6 +33,7 @@ then
echo -n "Custom header for file: $file" echo -n "Custom header for file: $file"
else else
years=$(git log --follow -M75% --format=%aD $file | years=$(git log --follow -M75% --format=%aD $file |
sort -r -n -k 4 |
awk '{if(NR==1)last=$4;}END{ awk '{if(NR==1)last=$4;}END{
first=$4 first=$4
if(first=="") print "" if(first=="") print ""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment