brew bundle env: quote values correctly.

Otherwise, certain output will break the script when `eval`ed.
This commit is contained in:
Mike McQuaid 2025-03-25 11:55:14 +00:00
parent 2dbce6bac5
commit fcd9b340a8
No known key found for this signature in database

View File

@ -142,7 +142,7 @@ module Homebrew
if subcommand == "env"
ENV.each do |key, value|
puts "export #{key}=\"#{value}\""
puts "export #{key}=\"#{Utils::Shell.sh_quote(value)}\""
end
return
end