Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
brew
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KMSCAKKSCFKA AKFACAMADCAS
brew
Commits
873aa670
Commit
873aa670
authored
8 years ago
by
Mike McQuaid
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #494 from MikeMcQuaid/vendor-ruby-tweaks
Vendored Ruby tweaks
parents
c598e1af
dd14357b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Library/Homebrew/utils/ruby.sh
+4
-4
4 additions, 4 deletions
Library/Homebrew/utils/ruby.sh
Library/brew.sh
+5
-5
5 additions, 5 deletions
Library/brew.sh
with
9 additions
and
9 deletions
Library/Homebrew/utils/ruby.sh
+
4
−
4
View file @
873aa670
origin-setup-ruby-path
()
{
origin
al
-setup-ruby-path
()
{
if
[[
-z
"
$HOMEBREW_DEVELOPER
"
]]
then
unset
HOMEBREW_RUBY_PATH
...
...
@@ -22,9 +22,9 @@ origin-setup-ruby-path() {
}
setup-ruby-path
()
{
if
[[
-z
"
$HOMEBREW_USE_VENDOR_RUBY
"
]]
if
[[
-z
"
$HOMEBREW_USE_VENDOR_RUBY
"
&&
-z
"
$HOMEBREW_FORCE_VENDOR_RUBY
"
]]
then
origin-setup-ruby-path
origin
al
-setup-ruby-path
return
fi
...
...
@@ -70,7 +70,7 @@ setup-ruby-path() {
ruby_version_major
=
"
${
ruby_version_major
%%.*
}
"
fi
if
[[
"
$ruby_version_major
"
!=
"2"
]]
if
[[
"
$ruby_version_major
"
!=
"2"
||
-n
"
$HOMEBREW_FORCE_VENDOR_RUBY
"
]]
then
brew vendor-install ruby
--quiet
if
[[
!
-x
"
$vendor_ruby_path
"
]]
...
...
This diff is collapsed.
Click to expand it.
Library/brew.sh
+
5
−
5
View file @
873aa670
...
...
@@ -209,11 +209,6 @@ EOS
esac
fi
# Hide shellcheck complaint:
# shellcheck source=/dev/null
source
"
$HOMEBREW_LIBRARY
/Homebrew/utils/ruby.sh"
setup-ruby-path
# Hide shellcheck complaint:
# shellcheck source=/dev/null
source
"
$HOMEBREW_LIBRARY
/Homebrew/utils/analytics.sh"
...
...
@@ -243,6 +238,11 @@ then
source
"
$HOMEBREW_BASH_COMMAND
"
{
update-preinstall
;
"homebrew-
$HOMEBREW_COMMAND
"
"
$@
"
;
exit
$?
;
}
else
# Hide shellcheck complaint:
# shellcheck source=/dev/null
source
"
$HOMEBREW_LIBRARY
/Homebrew/utils/ruby.sh"
setup-ruby-path
# Unshift command back into argument list (unless argument list was empty).
[[
"
$HOMEBREW_ARG_COUNT
"
-gt
0
]]
&&
set
--
"
$HOMEBREW_COMMAND
"
"
$@
"
{
update-preinstall
;
exec
"
$HOMEBREW_RUBY_PATH
"
-W0
"
$HOMEBREW_LIBRARY
/brew.rb"
"
$@
"
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment