From abd9a7d3806439b969c2d204222c46b1372c5f03 Mon Sep 17 00:00:00 2001 From: Brendan Abolivier Date: Tue, 21 May 2019 20:27:47 +0100 Subject: [PATCH] And it's not even Friday --- scripts/install-local-kafka.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install-local-kafka.sh b/scripts/install-local-kafka.sh index 85be43180..2282e4dcf 100755 --- a/scripts/install-local-kafka.sh +++ b/scripts/install-local-kafka.sh @@ -2,7 +2,7 @@ # Downloads, installs and runs a kafka instance -set -eux +set -eu cd `dirname $0`/.. @@ -11,7 +11,7 @@ mkdir -p .downloads KAFKA_URL=http://archive.apache.org/dist/kafka/2.1.0/kafka_2.11-2.1.0.tgz # Only download the kafka if it isn't already downloaded. -wget KAFKA_URL -O .downloads/kafka.tgz +test -f .downloads/kafka.tgz || wget $KAFKA_URL -O .downloads/kafka.tgz # Unpack the kafka over the top of any existing installation mkdir -p kafka && tar xzf .downloads/kafka.tgz -C kafka --strip-components 1 # Start the zookeeper running in the background.