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
3e68b380
Unverified
Commit
3e68b380
authored
Sep 19, 2019
by
Erin Swenson-Healey
Committed by
GitHub
Sep 19, 2019
Browse files
Merge pull request #25 from filecoin-project/chores/always-download-release-tarball
feat(tarball): always download release tarball
parents
c6682d93
43ff9c03
Changes
1
Hide whitespace changes
Inline
Side-by-side
install-shared.bash
View file @
3e68b380
...
@@ -24,21 +24,19 @@ download_release_tarball() {
...
@@ -24,21 +24,19 @@ 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
\
--header
"Accept:application/octet-stream"
\
--header
"Accept:application/octet-stream"
\
--location
\
--location
\
--output
/dev/null
\
--output
/dev/null
\
-w
%
{
url_effective
}
\
-w
%
{
url_effective
}
\
"
$__release_url
"
)
"
$__release_url
"
)
curl
--retry
3
--output
"
${
__tar_path
}
"
"
$__asset_url
"
curl
--retry
3
--output
"
${
__tar_path
}
"
"
$__asset_url
"
if
[[
$?
-ne
"0"
]]
;
then
if
[[
$?
-ne
"0"
]]
;
then
(>
&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