Fix for shebang with relative bin

`#!/usr/bin/env bin/linguist` is a valid shebang
This commit is contained in:
Brandon Keepers
2014-11-20 12:50:35 -05:00
parent 45384bd498
commit 9823af0cb4
3 changed files with 12 additions and 2 deletions

View File

@@ -85,4 +85,9 @@ class TestSamples < Test::Unit::TestCase
end
end
end
def test_shebang
assert_equal "crystal", Linguist.interpreter_from_shebang("#!/usr/bin/env bin/crystial")
assert_equal "python2", Linguist.interpreter_from_shebang("#!/usr/bin/python2.4")
end
end