aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorJack Nagel2014-09-14 01:39:02 -0500
committerJack Nagel2014-09-14 01:39:38 -0500
commit1243c9d339801a135bff1d6ad7da3d0c61b5f87c (patch)
treee530308ee3d6fe6fca7f3ac5f29e53a743c92670 /Library/Homebrew/cmd
parent3df80e131bdd12fc37b73d27abc5fb3e69ca424a (diff)
downloadhomebrew-1243c9d339801a135bff1d6ad7da3d0c61b5f87c.tar.bz2
Print each line of --env output atomically
Diffstat (limited to 'Library/Homebrew/cmd')
-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