update: fix fork bomb caused by brew update --help
Fixes Homebrew/homebrew#49334. Closes Homebrew/homebrew#49343. Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
parent
d431f20d88
commit
cfc5fed7ce
@ -252,7 +252,8 @@ homebrew-update() {
|
||||
for option in "$@"
|
||||
do
|
||||
case "$option" in
|
||||
--help) brew update --help; exit $? ;;
|
||||
# TODO: - `brew update --help` should display update subcommand help
|
||||
--help) brew --help; exit $? ;;
|
||||
--verbose) HOMEBREW_VERBOSE=1 ;;
|
||||
--debug) HOMEBREW_DEBUG=1;;
|
||||
--rebase) HOMEBREW_REBASE=1 ;;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user