Skip to content

Commit

Permalink
Fixes an issue that occurred during download of kafka, where `downloa…
Browse files Browse the repository at this point in the history
…d-kafka.sh` used an errorneous mirror URL (URL contained `}` at the end)
  • Loading branch information
gandrianakis committed Sep 2, 2015
1 parent 09d2cb5 commit 1de35c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion download-kafka.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh

mirror=$(curl --stderr /dev/null https://www.apache.org/dyn/closer.cgi\?as_json\=1 | sed -rn 's/.*"preferred":.*"(.*)"/\1/p')
mirror=$(curl --stderr /dev/null https://www.apache.org/dyn/closer.cgi\?as_json\=1 | jq -r '.preferred')
url="${mirror}kafka/${KAFKA_VERSION}/kafka_${SCALA_VERSION}-${KAFKA_VERSION}.tgz"
wget -q "${url}" -O "/tmp/kafka_${SCALA_VERSION}-${KAFKA_VERSION}.tgz"

0 comments on commit 1de35c5

Please sign in to comment.