aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/extend/ENV.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/ENV.rb b/Library/Homebrew/extend/ENV.rb
index 4c6c5fd47..fd87ffeea 100644
--- a/Library/Homebrew/extend/ENV.rb
+++ b/Library/Homebrew/extend/ENV.rb
@@ -409,6 +409,7 @@ Please take one of the following actions:
[*key].each do |key|
next if self[key].nil?
self[key] = self[key].sub value, '' # can't use sub! on ENV
+ self[key] = self[key].gsub /\s+/, ' ' # compact whitespace
self[key] = nil if self[key].empty? # keep things clean
end
end