From 89e07d44f6238647ba30cef28a398e8d82522d86 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sun, 9 Feb 2014 14:33:14 +0000 Subject: [PATCH] bottle: make --write handle both quotes styles. --- Library/Homebrew/cmd/bottle.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/bottle.rb b/Library/Homebrew/cmd/bottle.rb index 4c602478b0..94028d02b3 100644 --- a/Library/Homebrew/cmd/bottle.rb +++ b/Library/Homebrew/cmd/bottle.rb @@ -216,7 +216,7 @@ module Homebrew extend self odie 'Bottle block replacement failed!' unless string else update_or_add = 'update' - string = s.sub!(/( (url|sha1|sha256|head|version) '\S*'\n+)+/m, '\0' + output + "\n") + string = s.sub!(/( (url|sha1|sha256|head|version) ['"]\S*['"]\n+)+/m, '\0' + output + "\n") odie 'Bottle block addition failed!' unless string end end