aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorChris Winslett2012-11-02 09:57:13 -0500
committerAdam Vandenberg2012-11-05 19:14:08 -0800
commit475e63dc7e7574bc5b8e4d037b6dded461cab727 (patch)
tree25edd6999b779c2b11190b145709c1e58d03b95c /Library/Formula
parent2c64e0dcb8c1872cbb5c6d714f619975bef13648 (diff)
downloadhomebrew-475e63dc7e7574bc5b8e4d037b6dded461cab727.tar.bz2
mongodb: change startup script config finder
Closes #15814. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/mongodb.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Formula/mongodb.rb b/Library/Formula/mongodb.rb
index ce1287970..76cfe4d90 100644
--- a/Library/Formula/mongodb.rb
+++ b/Library/Formula/mongodb.rb
@@ -47,7 +47,7 @@ class Mongodb < Formula
mv bin/'mongod', prefix
(bin/'mongod').write <<-EOS.undent
#!/usr/bin/env ruby
- ARGV << '--config' << '#{etc}/mongod.conf' unless ARGV.include? '--config'
+ ARGV << '--config' << '#{etc}/mongod.conf' unless ARGV.find { |arg| arg =~ /\-\-config/ }
exec "#{prefix}/mongod", *ARGV
EOS