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
f0d5c597
Commit
f0d5c597
authored
Feb 22, 2013
by
Adam Stankiewicz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: Ensure cleaned directory did not exist
parent
0d7a0515
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
bin/rbenv-install
+3
-1
No files found.
bin/rbenv-install
View file @
f0d5c597
...
...
@@ -107,6 +107,8 @@ done
[
-n
"
$VERSION_NAME
"
]
||
VERSION_NAME
=
"
${
DEFINITION
##*/
}
"
PREFIX
=
"
${
RBENV_ROOT
}
/versions/
${
VERSION_NAME
}
"
[
-d
"
${
PREFIX
}
"
]
&&
PREFIX_EXISTS
=
1
# If the installation prefix exists, prompt for confirmation unless
# the --force option was specified.
if
[
-z
"
$FORCE
"
]
&&
[
-d
"
${
PREFIX
}
/bin"
]
;
then
...
...
@@ -137,7 +139,7 @@ for hook in "${before_hooks[@]}"; do eval "$hook"; done
# Plan cleanup on unsuccessful installation.
cleanup
()
{
rm
-rf
"
$PREFIX
"
[
-z
"
${
PREFIX_EXISTS
}
"
]
&&
rm
-rf
"
$PREFIX
"
}
trap
cleanup SIGINT
...
...
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