From 7cdee48bab5ebc09d67becd27d417085a89911d3 Mon Sep 17 00:00:00 2001 From: Aman Gupta Date: Wed, 23 Nov 2011 03:00:18 -0800 Subject: [PATCH] handle missing blob mode --- lib/linguist/blob_helper.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/linguist/blob_helper.rb b/lib/linguist/blob_helper.rb index d7c70b4f..0cec2813 100644 --- a/lib/linguist/blob_helper.rb +++ b/lib/linguist/blob_helper.rb @@ -147,6 +147,7 @@ module Linguist # Return true or false def shebang_extname? extname.empty? && + mode && (mode.to_i(8) & 05) == 05 end