mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	blob.mode
This commit is contained in:
		@@ -110,7 +110,7 @@ module Linguist
 | 
			
		||||
      # append a "magic" extension so it can be classified with other
 | 
			
		||||
      # languages that have shebang scripts.
 | 
			
		||||
      extension = FileBlob.new(name).extension
 | 
			
		||||
      if extension.empty? && mode && (mode.to_i(8) & 05) == 05
 | 
			
		||||
      if extension.empty? && blob.mode && (blob.mode.to_i(8) & 05) == 05
 | 
			
		||||
        name += ".script!"
 | 
			
		||||
      end
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user