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
5e2ff569
Commit
5e2ff569
authored
Apr 23, 2012
by
Sam Stephenson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fetch_git shows an error if git is not installed
parent
48590792
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
bin/ruby-build
+7
-2
No files found.
bin/ruby-build
View file @
5e2ff569
...
...
@@ -116,8 +116,13 @@ fetch_git() {
local
git_ref
=
"
$3
"
echo
"Cloning
${
git_url
}
..."
>
&2
{
git clone
--depth
1
--branch
"
$git_ref
"
"
$git_url
"
"
${
package_name
}
"
}
>
&4 2>&1
if
type
git 2>/dev/null
;
then
git clone
--depth
1
--branch
"
$git_ref
"
"
$git_url
"
"
${
package_name
}
"
>
&4 2>&1
else
echo
"error: please install
\`
git
\`
and try again"
>
&2
exit
1
fi
}
build_package
()
{
...
...
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