Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
intermediate commit
  • Loading branch information
searchivairus committed Feb 7, 2018
1 parent 7281031 commit 333d950
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/update_file_header.py
Expand Up @@ -40,7 +40,7 @@ newHeader = """/**
lenQty = len(lines)

headEnd = None
if lines[0].strip() == '/**' and lines[1].strip() == '* Non-metric Space Library':
if lenQty > 2 and lines[0].strip() == '/**' and lines[1].strip() == '* Non-metric Space Library':
for ln in range(lenQty):
if lines[ln].strip() == '*/':
headEnd = ln
Expand All @@ -50,7 +50,7 @@ if lines[0].strip() == '/**' and lines[1].strip() == '* Non-metric Space Library
sys.exit(1)
else:
print('WRANING Cannot find a template header in the file %s, IGNORING' % inFileName)
sys.exit(0)
sys.exit(1)

outFile.write(newHeader % (mainDevelList, now.year))

Expand Down

0 comments on commit 333d950

Please sign in to comment.