From 475e63dc7e7574bc5b8e4d037b6dded461cab727 Mon Sep 17 00:00:00 2001 From: Chris Winslett Date: Fri, 2 Nov 2012 09:57:13 -0500 Subject: mongodb: change startup script config finder Closes #15814. Signed-off-by: Adam Vandenberg --- Library/Formula/mongodb.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library') 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 -- cgit v1.2.3