diff options
| author | Jack Nagel | 2014-09-14 01:39:02 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-09-14 01:39:38 -0500 |
| commit | 976bb9b05725da843e51512f5a2d2b51633fe34d (patch) | |
| tree | 2438872818d022b2ca222e2aa206ada4b00d4e0e | |
| parent | 529b060dbb445ccad7c0da4d66e7e2dc52b8382f (diff) | |
| download | brew-976bb9b05725da843e51512f5a2d2b51633fe34d.tar.bz2 | |
Print each line of --env output atomically
| -rw-r--r-- | Library/Homebrew/cmd/--env.rb | 6 |
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 |
