mirror of
https://github.com/Lime3DS/Lime3DS
synced 2024-12-25 00:23:04 -06:00
Fixed license header checker handling deleted files incorrectly
This commit is contained in:
parent
20752b79ed
commit
1c5ec87069
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ puts 'done'
|
||||||
print 'Checking files...'
|
print 'Checking files...'
|
||||||
issue_files = []
|
issue_files = []
|
||||||
branch_changed_files.each do |file_name|
|
branch_changed_files.each do |file_name|
|
||||||
if file_name.end_with?('.cpp', '.h', '.kt')
|
if file_name.end_with?('.cpp', '.h', '.kt') and File.file?(file_name)
|
||||||
file_content = File.read(file_name)
|
file_content = File.read(file_name)
|
||||||
if not file_content.start_with?(license_header)
|
if not file_content.start_with?(license_header)
|
||||||
issue_files.push(file_name)
|
issue_files.push(file_name)
|
||||||
|
|
Loading…
Reference in a new issue