Merge pull request #8103 from Homebrew/inreplace
bottle: fix inreplace string
This commit is contained in:
		
						commit
						850be6697d
					
				@ -484,7 +484,7 @@ module Homebrew
 | 
			
		||||
            update_or_add = "update"
 | 
			
		||||
            if args.keep_old?
 | 
			
		||||
              mismatches = []
 | 
			
		||||
              bottle_block_contents = s[/  bottle do(.+?)end\n/m, 1]
 | 
			
		||||
              bottle_block_contents = s.inreplace_string[/  bottle do(.+?)end\n/m, 1]
 | 
			
		||||
              bottle_block_contents.lines.each do |line|
 | 
			
		||||
                line = line.strip
 | 
			
		||||
                next if line.empty?
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user