Avoid repeated interpolation here too
This commit is contained in:
		
							parent
							
								
									33e00b7f7c
								
							
						
					
					
						commit
						010a1461f7
					
				@ -204,7 +204,7 @@ def check_for_broken_symlinks
 | 
			
		||||
  Keg::PRUNEABLE_DIRECTORIES.each do |d|
 | 
			
		||||
    next unless d.directory?
 | 
			
		||||
    d.find do |pn|
 | 
			
		||||
      broken_symlinks << pn if pn.symlink? and pn.readlink.expand_path.to_s =~ /^#{HOMEBREW_PREFIX}/ and not pn.exist?
 | 
			
		||||
      broken_symlinks << pn if pn.symlink? and pn.readlink.expand_path.to_s =~ /^#{HOMEBREW_PREFIX}/o and not pn.exist?
 | 
			
		||||
    end
 | 
			
		||||
  end
 | 
			
		||||
  unless broken_symlinks.empty? then <<-EOS.undent
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user