Fix shebang without path

This commit is contained in:
Brandon Keepers
2014-11-28 14:14:10 -06:00
parent 47b739527a
commit 2517650ecb
2 changed files with 2 additions and 1 deletions

View File

@@ -21,7 +21,7 @@ module Linguist
lines = data.lines
return unless match = /^#! ?(.*)$/.match(lines.first)
tokens = match[0].split(' ')
tokens = match[1].split(' ')
script = tokens.first.split('/').last
script = tokens[1] if script == 'env'