Skip to content

Commit 9514d7e

Browse files
author
Toby McLaughlin
committed
Improve ELASTIC_VERSION handling
1 parent 80c4fb3 commit 9514d7e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
SHELL=/bin/bash
2+
23
ifndef ELASTIC_VERSION
3-
ELASTIC_VERSION=5.3.0
4+
ELASTIC_VERSION := $(shell awk 'BEGIN { FS = "=" } /ELASTIC_VERSION/ { print $$2 }' .env)
45
endif
56
export ELASTIC_VERSION
67

7-
BRANCH=`echo $$ELASTIC_VERSION | egrep --only-matching '^[0-9]+[.][0-9]+'`
8+
BRANCH := `echo $$ELASTIC_VERSION | egrep --only-matching '^[0-9]+[.][0-9]+'`
89

910
TARGETS := elasticsearch logstash kibana beats
1011

0 commit comments

Comments
 (0)