diff --git a/lib/linguist/blob_helper.rb b/lib/linguist/blob_helper.rb index d7c70b4fd2..0cec2813dd 100644 --- a/lib/linguist/blob_helper.rb +++ b/lib/linguist/blob_helper.rb @@ -147,6 +147,7 @@ def drupal_extname? # Return true or false def shebang_extname? extname.empty? && + mode && (mode.to_i(8) & 05) == 05 end