flume: fix shell quoting and ENV variable

Closes Homebrew/homebrew#9689.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Travis Dempsey 2012-01-20 12:09:40 -06:00 committed by Jack Nagel
parent 98f39cfd29
commit e9149cb019

View file

@ -9,8 +9,8 @@ class Flume < Formula
def flume_script
<<-EOS.undent
#!/bin/bash
export FLUME_CONF_DIR=#{libexec}/conf
exec #{libexec}/bin/flume $@
export FLUME_CONF_DIR=${FLUME_CONF_DIR-#{libexec}/conf}
exec #{libexec}/bin/flume "$@"
EOS
end