Changeset 048a0f28e87a635a3ba3d08cb607095f63e536a9

Show
Ignore:
Timestamp:
06/24/2008 12:20:40 PM (2 months ago)
Author:
mitchell <mitchell@frost.(none)>
git-committer:
mitchell <mitchell@frost.(none)> 1214335240 -0400
git-parent:

[cf74c60a8f0eedfcc9fae71cfa789e16ce382092]

git-author:
mitchell <mitchell@frost.(none)> 1214335240 -0400
Message:

Ignore switches to executables in detector.rb.
e.g. 'a /usr/bin/perl -w script text executable'.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lib/ohcount/detector.rb

    rfcb57d7 r048a0f2  
    500500    output = `file -b '#{ file_location }'` 
    501501    case output 
    502     when /([\w\/]+) script text/, /script text executable for ([\w\/]+)/ 
     502    when /([\w\/]+)(?: -[\w_]+)* script text/, /script text executable for ([\w\/]+)/ 
    503503      script = $1 
    504504      if script =~ /\/(\w*)$/