bin/brew: put commands into 'homebrew-' namespace
This should help to avoid collisions with external commands and other shell functions in the future and is closer to what we do in Ruby, where commands are namespaced by being methods of the `Homebrew` module.
This commit is contained in:
parent
29d80643d2
commit
da47ca9213
@ -220,7 +220,7 @@ pull() {
|
|||||||
trap - SIGINT
|
trap - SIGINT
|
||||||
}
|
}
|
||||||
|
|
||||||
update-bash() {
|
homebrew-update-bash() {
|
||||||
local option
|
local option
|
||||||
local DIR
|
local DIR
|
||||||
local UPSTREAM_BRANCH
|
local UPSTREAM_BRANCH
|
||||||
|
2
bin/brew
2
bin/brew
@ -164,7 +164,7 @@ then
|
|||||||
# Hide shellcheck complaint:
|
# Hide shellcheck complaint:
|
||||||
# shellcheck source=/dev/null
|
# shellcheck source=/dev/null
|
||||||
source "$HOMEBREW_BASH_COMMAND"
|
source "$HOMEBREW_BASH_COMMAND"
|
||||||
{ "$HOMEBREW_COMMAND" "$@"; exit $?; }
|
{ "homebrew-$HOMEBREW_COMMAND" "$@"; exit $?; }
|
||||||
else
|
else
|
||||||
exec "$HOMEBREW_RUBY_PATH" -W0 "$HOMEBREW_LIBRARY/brew.rb" "$@"
|
exec "$HOMEBREW_RUBY_PATH" -W0 "$HOMEBREW_LIBRARY/brew.rb" "$@"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user