Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
ruby-build
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ruby-build
Commits
51d8e512
Commit
51d8e512
authored
Oct 26, 2013
by
Mislav Marohnić
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prefer control flow to chaining grouped expressions
Helps avoid the pitfall where ERR trap has no effect. See
262eb165
parent
262eb165
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
bin/ruby-build
+4
-5
No files found.
bin/ruby-build
View file @
51d8e512
...
@@ -244,13 +244,12 @@ fetch_tarball() {
...
@@ -244,13 +244,12 @@ fetch_tarball() {
tar_args
=
"
${
tar_args
/z/j
}
"
tar_args
=
"
${
tar_args
/z/j
}
"
fi
fi
symlink_tarball_from_cache
"
$package_filename
"
"
$checksum
"
||
{
if
!
symlink_tarball_from_cache
"
$package_filename
"
"
$checksum
"
;
then
echo
"Downloading
${
package_filename
}
..."
>
&2
echo
"Downloading
${
package_filename
}
..."
>
&2
{
http head
"
$mirror_url
"
&&
http head
"
$mirror_url
"
&&
download_tarball
"
$mirror_url
"
"
$package_filename
"
"
$checksum
"
download_tarball
"
$mirror_url
"
"
$package_filename
"
"
$checksum
"
||
}
||
download_tarball
"
$package_url
"
"
$package_filename
"
"
$checksum
"
download_tarball
"
$package_url
"
"
$package_filename
"
"
$checksum
"
}
fi
{
if
tar
$tar_args
"
$package_filename
"
;
then
{
if
tar
$tar_args
"
$package_filename
"
;
then
if
[
-z
"
$KEEP_BUILD_PATH
"
]
;
then
if
[
-z
"
$KEEP_BUILD_PATH
"
]
;
then
...
...
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