aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2014-09-14 01:39:02 -0500
committerJack Nagel2014-09-14 01:39:38 -0500
commit976bb9b05725da843e51512f5a2d2b51633fe34d (patch)
tree2438872818d022b2ca222e2aa206ada4b00d4e0e
parent529b060dbb445ccad7c0da4d66e7e2dc52b8382f (diff)
downloadbrew-976bb9b05725da843e51512f5a2d2b51633fe34d.tar.bz2
Print each line of --env output atomically
-rw-r--r--Library/Homebrew/cmd/--env.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/cmd/--env.rb b/Library/Homebrew/cmd/--env.rb
index 45af51391..28bdb4f3d 100644
--- a/Library/Homebrew/cmd/--env.rb
+++ b/Library/Homebrew/cmd/--env.rb
@@ -36,12 +36,12 @@ module Homebrew
keys.each do |key|
value = env[key]
- print "#{key}: #{value}"
+ s = "#{key}: #{value}"
case key
when "CC", "CXX", "LD"
- print " => #{Pathname.new(value).realpath}" if File.symlink?(value)
+ s << " => #{Pathname.new(value).realpath}" if File.symlink?(value)
end
- puts
+ puts s
end
end
end