mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
only check for shebangs in executable files
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user