Add .sh to list of valid library extenions.
As discussed with mistym, it's not only compiled code that goes in /usr/lib, but any types of libraries. As such, .pm was added to the valid extensions list a while back. Unfortunately, .sh was not added, even though configuration includes and platform function library shell files are often put in /usr/lib as shellscript libraries. This patch adds .sh to the list of valid library extensions. Closes Homebrew/homebrew#14993. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
		
							parent
							
								
									1027093eae
								
							
						
					
					
						commit
						9601b753fd
					
				@ -383,7 +383,7 @@ class FormulaInstaller
 | 
			
		||||
    return unless f.lib.directory?
 | 
			
		||||
 | 
			
		||||
    valid_extensions = %w(.a .dylib .framework .jnilib .la .o .so
 | 
			
		||||
                          .jar .prl .pm)
 | 
			
		||||
                          .jar .prl .pm .sh)
 | 
			
		||||
    non_libraries = f.lib.children.select do |g|
 | 
			
		||||
      next if g.directory?
 | 
			
		||||
      not valid_extensions.include? g.extname
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user