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
709b309b
Commit
709b309b
authored
Oct 30, 2011
by
Sam Stephenson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Automatically delete $TEMP_PATH if it's empty
parent
63bcf2c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
bin/ruby-build
+9
-6
No files found.
bin/ruby-build
View file @
709b309b
...
@@ -27,13 +27,16 @@ build_failed() {
...
@@ -27,13 +27,16 @@ build_failed() {
{
echo
{
echo
echo
"BUILD FAILED"
echo
"BUILD FAILED"
echo
echo
echo
"Inspect or clean up the working tree at
${
TEMP_PATH
}
"
if
file_is_not_empty
"
$LOG_PATH
"
;
then
if
!
rmdir
"
${
TEMP_PATH
}
"
2>/dev/null
;
then
echo
"Results logged to
${
LOG_PATH
}
"
echo
"Inspect or clean up the working tree at
${
TEMP_PATH
}
"
echo
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
fi
fi
}
>
&3
}
>
&3
exit
1
exit
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