Skip to content

Commit

Permalink
Revert "make -V/--version fast on *nix"
Browse files Browse the repository at this point in the history
This reverts commit 562754b.
  • Loading branch information
jsvd committed Jun 17, 2016
1 parent bd43b28 commit bb0694d
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions bin/logstash
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,4 @@ fi
. "$(cd `dirname $SOURCEPATH`/..; pwd)/bin/logstash.lib.sh"
setup

if [ "$1" = "-V" ] || [ "$1" = "--version" ];
then
LOGSTASH_VERSION_FILE="${LOGSTASH_HOME}/logstash-core/lib/logstash/version.rb"
LOGSTASH_VERSION="$(sed -ne 's/^LOGSTASH_VERSION = "\([^*]*\)"$/\1/p' $LOGSTASH_VERSION_FILE)"
echo "logstash $LOGSTASH_VERSION"
else
ruby_exec "${LOGSTASH_HOME}/lib/bootstrap/environment.rb" "logstash/runner.rb" "$@"
fi
ruby_exec "${LOGSTASH_HOME}/lib/bootstrap/environment.rb" "logstash/runner.rb" "$@"

0 comments on commit bb0694d

Please sign in to comment.