aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula_installer.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index 00678935d..c9d1f42d6 100644
--- a/Library/Homebrew/formula_installer.rb
+++ b/Library/Homebrew/formula_installer.rb
@@ -538,9 +538,9 @@ class FormulaInstaller
end
formula.options.each do |opt|
- name = opt.name[/\A(.+)=\z$/, 1]
- value = ARGV.value(name)
- args << "--#{name}=#{value}" if name && value
+ name = opt.name[/^([^=])+=$/, 1]
+ value = ARGV.value(name) if name
+ args << "--#{name}=#{value}" if value
end
args