#!/usr/bin/env bash set -x # Cause the script to exit if a single command fails. set -e if [ ! -f redis/src/redis-server ]; then redis_vname="4.0-rc2" # This check is to make sure the tarball has been fully extracted. The only # 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" curl -sL "https://github.com/antirez/redis/archive/$redis_vname.tar.gz" | tar xz --strip-components=1 -C "./redis" fi cd redis make fi