aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/doctor.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index 28474baeb..59a825573 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -659,9 +659,7 @@ def check_DYLD_vars
Setting DYLD_* vars can break dynamic linking.
Set variables:
EOS
- found.each do |e|
- s << " #{e}\n"
- end
+ s << found.map { |e| " #{e}: #{ENV.fetch(e)}\n" }.join
if found.include? 'DYLD_INSERT_LIBRARIES'
s += <<-EOS.undent