Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
go-sectorbuilder
Commits
43ff9c03
Commit
43ff9c03
authored
Sep 18, 2019
by
laser
Browse files
feat(tarball): always download release tarball
parent
c6682d93
Changes
1
Show whitespace changes
Inline
Side-by-side
install-shared.bash
View file @
43ff9c03
...
@@ -24,7 +24,6 @@ download_release_tarball() {
...
@@ -24,7 +24,6 @@ download_release_tarball() {
__tar_path
=
"/tmp/
${
__release_name
}
_
$(
basename
${
__release_url
}
)
.tar.gz"
__tar_path
=
"/tmp/
${
__release_name
}
_
$(
basename
${
__release_url
}
)
.tar.gz"
if
[[
!
-f
"
${
__tar_path
}
"
]]
;
then
__asset_url
=
$(
curl
\
__asset_url
=
$(
curl
\
--head
\
--head
\
--retry
3
\
--retry
3
\
...
@@ -39,7 +38,6 @@ download_release_tarball() {
...
@@ -39,7 +38,6 @@ download_release_tarball() {
(>
&2
echo
"failed to download release asset (tag URL:
${
__release_tag_url
}
, asset URL:
${
__asset_url
}
)"
)
(>
&2
echo
"failed to download release asset (tag URL:
${
__release_tag_url
}
, asset URL:
${
__asset_url
}
)"
)
return
1
return
1
fi
fi
fi
eval
$__resultvar
=
"'
$__tar_path
'"
eval
$__resultvar
=
"'
$__tar_path
'"
}
}
...
...
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