mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-12-08 20:38:47 +00:00
handle missing blob mode
This commit is contained in:
@@ -147,6 +147,7 @@ module Linguist
|
|||||||
# Return true or false
|
# Return true or false
|
||||||
def shebang_extname?
|
def shebang_extname?
|
||||||
extname.empty? &&
|
extname.empty? &&
|
||||||
|
mode &&
|
||||||
(mode.to_i(8) & 05) == 05
|
(mode.to_i(8) & 05) == 05
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user