Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
ebulk
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
ebulk
Commits
94541439
Commit
94541439
authored
Jun 07, 2021
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Plain Diff
Fix embulk installation
See merge request
!6
parents
9b767eab
bae03463
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ebulk
ebulk
+4
-4
No files found.
ebulk
View file @
94541439
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment