only check for shebangs in executable files

This commit is contained in:
Aman Gupta
2011-11-23 01:37:01 -08:00
parent 61a59c8e84
commit d2118d1471
16 changed files with 9 additions and 1 deletions

View File

@@ -146,7 +146,8 @@ module Linguist
#
# Return true or false
def shebang_extname?
extname.empty?
extname.empty? &&
(mode.to_i(8) & 05) == 05
end
MEGABYTE = 1024 * 1024