Promote update-bash to the default updater.
Also, rename the existing updater to `update-ruby` to allow using as a fallback. It will eventually be removed. Closes Homebrew/homebrew#49109. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
b389953f5b
commit
775c4eedd7
@ -6,7 +6,7 @@ require "formulary"
|
||||
require "descriptions"
|
||||
|
||||
module Homebrew
|
||||
def update
|
||||
def update_ruby
|
||||
unless ARGV.named.empty?
|
||||
abort <<-EOS.undent
|
||||
This command updates brew itself, and does not take formula names.
|
||||
@ -250,7 +250,7 @@ pull() {
|
||||
trap - SIGINT
|
||||
}
|
||||
|
||||
homebrew-update-bash() {
|
||||
homebrew-update() {
|
||||
local option
|
||||
local DIR
|
||||
local UPSTREAM_BRANCH
|
||||
@ -1,5 +1,5 @@
|
||||
require "testing_env"
|
||||
require "cmd/update"
|
||||
require "cmd/update-ruby"
|
||||
require "formula_versions"
|
||||
require "yaml"
|
||||
|
||||
|
||||
2
bin/brew
2
bin/brew
@ -144,7 +144,7 @@ fi
|
||||
if [[ "$(id -u)" = "0" && "$(/usr/bin/stat -f%u "$HOMEBREW_BREW_FILE")" != "0" ]]
|
||||
then
|
||||
case "$HOMEBREW_COMMAND" in
|
||||
instal|install|reinstall|postinstall|ln|link|pin|update|update-bash|upgrade|create|migrate|tap|switch)
|
||||
instal|install|reinstall|postinstall|ln|link|pin|update|update-ruby|upgrade|create|migrate|tap|switch)
|
||||
odie <<EOS
|
||||
Cowardly refusing to 'sudo brew $HOMEBREW_COMMAND'
|
||||
You can use brew with sudo, but only if the brew executable is owned by root.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user