Merge pull request #2894 from pchaigno/fix-warnings

Fix warnings
This commit is contained in:
Paul Chaignon
2016-03-20 03:42:32 +01:00
committed by Arfon Smith
parent b1f5e93b4a
commit 270fa8f5d3
7 changed files with 13 additions and 9 deletions

View File

@@ -42,10 +42,10 @@ module Linguist
return unless script
# "python2.6" -> "python2"
script.sub! /(\.\d+)$/, ''
script.sub!(/(\.\d+)$/, '')
# #! perl -> perl
script.sub! /^#!\s*/, ''
script.sub!(/^#!\s*/, '')
# Check for multiline shebang hacks that call `exec`
if script == 'sh' &&