- Force jruby if USE_JRUBY is set

This commit is contained in:
Jordan Sissel 2013-03-19 13:13:15 -07:00
parent 98863a67c0
commit c33b9d100c

View file

@ -8,7 +8,8 @@ fi
export RUBYLIB="$basedir/lib"
if which ruby > /dev/null 2>&1 ; then
which ruby > /dev/null 2>&1
if [ "$?" -eq 0 -a -z "$USE_JRUBY" ] ; then
ruby "$basedir/lib/logstash/runner.rb" "$@"
else
# No ruby found, fetch JRuby and run.