updated script
This commit is contained in:
parent
a34f2e9a67
commit
5e85367755
1 changed files with 0 additions and 3 deletions
|
@ -14,11 +14,9 @@ def checkForHeader(fileName)
|
||||||
|
|
||||||
if allLines[0] =~ /(^# Copyright)/ || allLines[1] =~ /(^# Copyright)/
|
if allLines[0] =~ /(^# Copyright)/ || allLines[1] =~ /(^# Copyright)/
|
||||||
foundHeader = true
|
foundHeader = true
|
||||||
puts 'foundHeader'
|
|
||||||
end
|
end
|
||||||
if allLines[0] =~ /(^#!\/)/
|
if allLines[0] =~ /(^#!\/)/
|
||||||
foundSheBang = true
|
foundSheBang = true
|
||||||
puts 'foundSheBang'
|
|
||||||
end
|
end
|
||||||
|
|
||||||
file.each do |line|
|
file.each do |line|
|
||||||
|
@ -31,7 +29,6 @@ def checkForHeader(fileName)
|
||||||
t_file.puts line
|
t_file.puts line
|
||||||
t_file.puts header
|
t_file.puts header
|
||||||
else
|
else
|
||||||
puts line
|
|
||||||
t_file.puts line.rstrip
|
t_file.puts line.rstrip
|
||||||
end
|
end
|
||||||
end
|
end
|
Loading…
Reference in a new issue