mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -04:00
Revert "make -V/--version fast on *nix"
This reverts commit 7bf89aa53b
.
This commit is contained in:
parent
c9b243da38
commit
655f776a99
1 changed files with 1 additions and 8 deletions
|
@ -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" "$@"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue