Skip to content

Commit

Permalink
[FIX] Put params to file in quotes -- sometimes the filenames have …
Browse files Browse the repository at this point in the history
…nasty characters in them
  • Loading branch information
Robin Luckey authored and Robin Luckey committed Apr 10, 2008
1 parent fb96900 commit d3812fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ohcount/detector.rb
Expand Up @@ -472,7 +472,7 @@ def self.disambiguate_fortran(file_context)
#
def self.disambiguate_nil(file_context)
file_location = file_context.file_location
output = `file -b #{ file_location }`
output = `file -b '#{ file_location }'`
case output
when /([\w\/]+) script text/, /script text executable for ([\w\/]+)/
script = $1
Expand Down

0 comments on commit d3812fe

Please sign in to comment.