bottle: make --write handle both quotes styles.

This commit is contained in:
Mike McQuaid 2014-02-09 14:33:14 +00:00
parent 25c4e336f4
commit 89e07d44f6

View File

@ -216,7 +216,7 @@ module Homebrew extend self
odie 'Bottle block replacement failed!' unless string odie 'Bottle block replacement failed!' unless string
else else
update_or_add = 'update' 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 odie 'Bottle block addition failed!' unless string
end end
end end