Skip to content

Commit

Permalink
Fix adding license header to new files
Browse files Browse the repository at this point in the history
  • Loading branch information
N. Justus committed Oct 30, 2017
1 parent c878c48 commit a6a5b75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/addFileHeader.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def writeHeader(header, filePath):
content = original
headerLength = len(header.split('\n'))

if UPDATE_HEADER:
if UPDATE_HEADER and original[0].startswith(START_COMMENT):
content = original[headerLength:]
newLines = header + "\n\n" + "".join(content)
f.write(newLines)
Expand Down

0 comments on commit a6a5b75

Please sign in to comment.