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:
Xu Cheng 2016-02-19 17:02:20 +08:00
parent d431f20d88
commit cfc5fed7ce

View File

@ -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 ;;