Commit 94541439 authored by Ivan Tyagov's avatar Ivan Tyagov

Fix embulk installation

See merge request !6
parents 9b767eab bae03463
...@@ -452,7 +452,7 @@ function checkSoftware { ...@@ -452,7 +452,7 @@ function checkSoftware {
if ! checkCurl; then if ! checkCurl; then
return 1 return 1
fi 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 chmod +x $embulk
if hash $embulk 2>/dev/null; then if hash $embulk 2>/dev/null; then
echo "[INFO] Done. Embulk successfully installed." echo "[INFO] Done. Embulk successfully installed."
...@@ -462,7 +462,7 @@ function checkSoftware { ...@@ -462,7 +462,7 @@ function checkSoftware {
echo echo
echo "[INFO] Plase, try manual installation. Run:" echo "[INFO] Plase, try manual installation. Run:"
echo 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 "chmod +x ~/.embulk/bin/embulk"
echo -e "echo 'export PATH=\"\$HOME/.embulk/bin:\$PATH\"' >> ~/.bashrc" echo -e "echo 'export PATH=\"\$HOME/.embulk/bin:\$PATH\"' >> ~/.bashrc"
echo "source ~/.bashrc" echo "source ~/.bashrc"
...@@ -471,8 +471,8 @@ function checkSoftware { ...@@ -471,8 +471,8 @@ function checkSoftware {
else else
version=$($embulk --version 2>&1 | awk -F ' ' '/embulk/ {print $2}') version=$($embulk --version 2>&1 | awk -F ' ' '/embulk/ {print $2}')
echo "[INFO] Current embulk version: "$version"" echo "[INFO] Current embulk version: "$version""
if [[ "$version" < "$EMBULK_VERSION" ]]; then if [[ "$version" != "$EMBULK_VERSION" ]]; then
echo "Your embulk version is too old. Upgrading embulk to version $EMBULK_VERSION" echo "Upgrading embulk to version $EMBULK_VERSION"
$embulk selfupdate $EMBULK_VERSION $embulk selfupdate $EMBULK_VERSION
fi fi
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