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
24ff49cc
Commit
24ff49cc
authored
Dec 30, 2013
by
Mislav Marohnić
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support rbenv hook paths that have spaces
Same approach taken in rbenv: sstephenson/rbenv@baf7656d
parent
92b32f54
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
bin/rbenv-install
+4
-4
bin/rbenv-uninstall
+4
-3
No files found.
bin/rbenv-install
View file @
24ff49cc
...
@@ -113,10 +113,10 @@ after_install() {
...
@@ -113,10 +113,10 @@ after_install() {
after_hooks[
"
${#
after_hooks
[@]
}
"
]=
"
$hook
"
after_hooks[
"
${#
after_hooks
[@]
}
"
]=
"
$hook
"
}
}
# Load plugin hooks.
OLDIFS
=
"
$IFS
"
for
script
in
$(
rbenv-hooks install
)
;
do
IFS
=
$'
\n
'
scripts
=(
`
rbenv-hooks install
`
)
source
"
$script
"
IFS
=
"
$OLDIFS
"
done
for
script
in
"
${
scripts
[@]
}
"
;
do
source
"
$script
"
;
done
# Set VERSION_NAME from $DEFINITION, if it is not already set. Then
# Set VERSION_NAME from $DEFINITION, if it is not already set. Then
...
...
bin/rbenv-uninstall
View file @
24ff49cc
...
@@ -50,9 +50,10 @@ after_uninstall() {
...
@@ -50,9 +50,10 @@ after_uninstall() {
after_hooks[
"
${#
after_hooks
[@]
}
"
]=
"
$hook
"
after_hooks[
"
${#
after_hooks
[@]
}
"
]=
"
$hook
"
}
}
for
script
in
$(
rbenv-hooks uninstall
)
;
do
OLDIFS
=
"
$IFS
"
source
"
$script
"
IFS
=
$'
\n
'
scripts
=(
`
rbenv-hooks uninstall
`
)
done
IFS
=
"
$OLDIFS
"
for
script
in
"
${
scripts
[@]
}
"
;
do
source
"
$script
"
;
done
VERSION_NAME
=
"
${
DEFINITION
##*/
}
"
VERSION_NAME
=
"
${
DEFINITION
##*/
}
"
...
...
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