diff --git a/bin/logstash b/bin/logstash index 8014a86bb..49a818ffe 100755 --- a/bin/logstash +++ b/bin/logstash @@ -2,11 +2,16 @@ basedir=$(cd `dirname $0`/..; pwd) if [ -d "$basedir/.git" ] ; then - export GEM_HOME="$basedir/vendor/bundle/jruby/1.9" + RUBY=${RUBY=jruby} + RUBYVER=1.9 + export GEM_HOME="$basedir/vendor/bundle/${RUBY}/1.9" export GEM_PATH= fi export RUBYLIB="$basedir/lib" +echo $GEM_HOME + +gem list i18n which ruby > /dev/null 2>&1 if [ "$?" -eq 0 -a -z "$USE_JRUBY" ] ; then