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
9463182d
Commit
9463182d
authored
Oct 21, 2011
by
Sam Stephenson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only show log info when something has been logged
parent
a7dc9b12
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
3 deletions
+19
-3
bin/ruby-build
+19
-3
No files found.
bin/ruby-build
View file @
9463182d
...
@@ -28,13 +28,29 @@ build_failed() {
...
@@ -28,13 +28,29 @@ build_failed() {
echo
"BUILD FAILED"
echo
"BUILD FAILED"
echo
echo
echo
"Inspect or clean up the working tree at
${
TEMP_PATH
}
"
echo
"Inspect or clean up the working tree at
${
TEMP_PATH
}
"
echo
"Results logged to
${
LOG_PATH
}
"
echo
"Last 10 log lines:"
if
file_is_not_empty
"
$LOG_PATH
"
;
then
tail
-n
10
$LOG_PATH
echo
"Results logged to
${
LOG_PATH
}
"
echo
echo
"Last 10 log lines:"
tail
-n
10
"
$LOG_PATH
"
fi
}
>
&3
}
>
&3
exit
1
exit
1
}
}
file_is_not_empty
()
{
local
filename
=
"
$1
"
local
line_count
=
"
$(
wc
-l
"
$filename
"
2>/dev/null
||
true
)
"
if
[
-n
"
$line_count
"
]
;
then
words
=(
$line_count
)
[
"
${
words
[0]
}
"
-gt
0
]
else
return
1
fi
}
install_package
()
{
install_package
()
{
install_package_using
"tarball"
1
$*
install_package_using
"tarball"
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