summaryrefslogtreecommitdiffstats
path: root/host/fix-copyright-years
diff options
context:
space:
mode:
Diffstat (limited to 'host/fix-copyright-years')
-rwxr-xr-xhost/fix-copyright-years1
1 files changed, 1 insertions, 0 deletions
diff --git a/host/fix-copyright-years b/host/fix-copyright-years
index 8de7d74ba..f5a3d5822 100755
--- a/host/fix-copyright-years
+++ b/host/fix-copyright-years
@@ -45,6 +45,7 @@ def fix_co_years(files):
year_now = datetime.datetime.now().year
all_years = min(log_years), max(list(log_years)+[year_now]) #add the current year
all_years_str = '%s-%s'%all_years
+ if all_years[0] == all_years[1]: all_years_str = str(all_years[0])
new_text = ''.join(lines[:num] + [line.replace(co_years_str, all_years_str)] + lines[num+1:])
open(file, 'w').write(new_text)