mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
Fix execution when /home/jls/projects/logstash is not the root of the git repo.
This commit is contained in:
parent
a2a7c5f2a8
commit
eb79f504fb
1 changed files with 5 additions and 4 deletions
|
@ -1,9 +1,10 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ -d .git ] ; then
|
||||
export GEM_HOME=./vendor/bundle/jruby/1.9
|
||||
basedir=$(cd `dirname $0`/..; pwd)
|
||||
if [ -d "$basedir/.git" ] ; then
|
||||
export GEM_HOME="$basedir/vendor/bundle/jruby/1.9"
|
||||
export GEM_PATH=
|
||||
fi
|
||||
|
||||
export RUBYLIB=./lib
|
||||
ruby lib/logstash/runner.rb "$@"
|
||||
export RUBYLIB="$basedir/lib"
|
||||
ruby "$basedir/lib/logstash/runner.rb" "$@"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue