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
48590792
Commit
48590792
authored
Apr 23, 2012
by
Sam Stephenson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up fetch_url
parent
aa651b77
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
bin/ruby-build
+10
-7
No files found.
bin/ruby-build
View file @
48590792
...
@@ -89,13 +89,16 @@ make_package() {
...
@@ -89,13 +89,16 @@ make_package() {
popd
>
&4
popd
>
&4
}
}
if
type
curl &>/dev/null
;
then
fetch_url
()
{
fetch_url
()
{
curl
"
$@
"
;
}
if
type
curl 2>/dev/null
;
then
elif
type
wget &>/dev/null
;
then
curl
"
$@
"
fetch_url
()
{
wget
-O-
"
$@
"
;
}
elif
type
wget 2>/dev/null
;
then
else
wget
-O-
"
$@
"
fetch_url
()
{
echo
"curl or wget is required"
>
&2
;
exit
1
;
}
else
fi
echo
"error: please install
\`
curl
\`
or
\`
wget
\`
and try again"
>
&2
exit
1
fi
}
fetch_tarball
()
{
fetch_tarball
()
{
local
package_name
=
"
$1
"
local
package_name
=
"
$1
"
...
...
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