Commit bae03463 authored by Roque's avatar Roque

Fix Embulk installation

parent 9b767eab
......@@ -452,7 +452,7 @@ function checkSoftware {
if ! checkCurl; then
return 1
fi
curl --create-dirs -o $embulk -L "https://dl.bintray.com/embulk/maven/embulk-$EMBULK_VERSION.jar"
curl --create-dirs -o $embulk -L "https://github.com/embulk/embulk/releases/download/v$EMBULK_VERSION/embulk-$EMBULK_VERSION.jar"
chmod +x $embulk
if hash $embulk 2>/dev/null; then
echo "[INFO] Done. Embulk successfully installed."
......@@ -462,7 +462,7 @@ function checkSoftware {
echo
echo "[INFO] Plase, try manual installation. Run:"
echo
echo 'curl --create-dirs -o ~/.embulk/bin/embulk -L "https://dl.bintray.com/embulk/maven/embulk-$EMBULK_VERSION.jar"'
echo 'curl --create-dirs -o ~/.embulk/bin/embulk -L "https://github.com/embulk/embulk/releases/download/v$EMBULK_VERSION/embulk-$EMBULK_VERSION.jar"'
echo "chmod +x ~/.embulk/bin/embulk"
echo -e "echo 'export PATH=\"\$HOME/.embulk/bin:\$PATH\"' >> ~/.bashrc"
echo "source ~/.bashrc"
......@@ -471,8 +471,8 @@ function checkSoftware {
else
version=$($embulk --version 2>&1 | awk -F ' ' '/embulk/ {print $2}')
echo "[INFO] Current embulk version: "$version""
if [[ "$version" < "$EMBULK_VERSION" ]]; then
echo "Your embulk version is too old. Upgrading embulk to version $EMBULK_VERSION"
if [[ "$version" != "$EMBULK_VERSION" ]]; then
echo "Upgrading embulk to version $EMBULK_VERSION"
$embulk selfupdate $EMBULK_VERSION
fi
fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment