updated filter for external scripts
This commit is contained in:
parent
3f8b59784e
commit
bb10bb600b
2 changed files with 2 additions and 4 deletions
|
@ -1,8 +1,4 @@
|
|||
#!/usr/bin/ruby -w
|
||||
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
||||
|
||||
|
||||
|
||||
=begin
|
||||
/***************************************************************************
|
||||
* Copyright (C) 2008, Paul Lutus *
|
||||
|
|
|
@ -14,6 +14,8 @@ def checkForHeader(fileName)
|
|||
|
||||
if allLines[0] =~ /(^# Copyright)/ || allLines[1] =~ /(^# Copyright)/
|
||||
foundHeader = true
|
||||
elsif allLines[1] =~/^=begin/ #assume external script
|
||||
foundHeader = true
|
||||
end
|
||||
if allLines[0] =~ /(^#!\/)/
|
||||
foundSheBang = true
|
||||
|
|
Loading…
Reference in a new issue