Download Redis and flatbuffers differently. (#1602)

* Download Redis differently.

* Get flatbuffers with curl
This commit is contained in:
Robert Nishihara
2018-02-25 20:32:33 -08:00
committed by Philipp Moritz
parent 00ef2f6285
commit ba1ce85f58
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -1,5 +1,7 @@
#!/usr/bin/env bash
set -x
# Cause the script to exit if a single command fails.
set -e
@@ -9,7 +11,8 @@ if [ ! -f redis/src/redis-server ]; then
# relevant bit about redis/utils/whatisdoing.sh is that it is one of the last
# files in the tarball.
if [ ! -f redis/utils/whatisdoing.sh ]; then
mkdir -p "./redis" && wget -O- "https://github.com/antirez/redis/archive/$redis_vname.tar.gz" | tar xvz --strip-components=1 -C "./redis"
mkdir -p "./redis"
curl -sL "https://github.com/antirez/redis/archive/$redis_vname.tar.gz" | tar xz --strip-components=1 -C "./redis"
fi
cd redis
make