Skip to content

Commit e1a709c

Browse files
committed
Improvements to build script
1 parent 1fb6a0e commit e1a709c

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

build.bat

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,18 @@ SET KIBANA_VERSION=4.1.1
1111
rem ---------- Download packages ----------
1212
if not exist "downloads" mkdir downloads
1313

14-
rem %CURL% "https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-%ELASTIC_SEARCH_VERSION%.zip" -o downloads\elasticsearch.zip
15-
rem %CURL% "https://download.elastic.co/logstash/logstash/logstash-%LOGSTASH_VERSION%.zip" -o downloads\logstash.zip
16-
rem %CURL% "https://download.elastic.co/kibana/kibana/kibana-%KIBANA_VERSION%-windows.zip" -o downloads\kibana.zip
14+
if not exist "downloads\elasticsearch.zip" %CURL% "https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-%ELASTIC_SEARCH_VERSION%.zip" -o downloads\elasticsearch.zip
15+
if not exist "downloads\logstash.zip" %CURL% "https://download.elastic.co/logstash/logstash/logstash-%LOGSTASH_VERSION%.zip" -o downloads\logstash.zip
16+
if not exist "downloads\kibana.zip" %CURL% "https://download.elastic.co/kibana/kibana/kibana-%KIBANA_VERSION%-windows.zip" -o downloads\kibana.zip
1717
rem --------------------------------------
1818

1919
rem ---------- Unzip packages ----------
20-
if not exist "temp" mkdir temp
20+
rmdir /Q /S temp
21+
mkdir temp
2122

22-
rem %ZIP% x -otemp downloads\elasticsearch.zip
23-
rem %ZIP% x -otemp downloads\logstash.zip
24-
rem %ZIP% x -otemp downloads\kibana.zip
23+
%ZIP% x -otemp downloads\elasticsearch.zip
24+
%ZIP% x -otemp downloads\logstash.zip
25+
%ZIP% x -otemp downloads\kibana.zip
2526

2627
move temp\elasticsearch-%ELASTIC_SEARCH_VERSION% temp\elasticsearch
2728
move temp\logstash-%LOGSTASH_VERSION% temp\logstash

0 commit comments

Comments
 (0)