brew.sh: improve brew tap handling

This commit is contained in:
Ruoyu Zhong 2024-09-25 17:16:18 +08:00
parent ea011ae528
commit c17154d2ac
No known key found for this signature in database

View File

@ -172,9 +172,11 @@ case "$@" in
source "${HOMEBREW_LIBRARY}/Homebrew/list.sh" source "${HOMEBREW_LIBRARY}/Homebrew/list.sh"
homebrew-list "$@" && exit 0 homebrew-list "$@" && exit 0
;; ;;
# homebrew-tap only handles invocations with no arguments
tap) tap)
source "${HOMEBREW_LIBRARY}/Homebrew/tap.sh" source "${HOMEBREW_LIBRARY}/Homebrew/tap.sh"
homebrew-tap "$@" && exit 0 homebrew-tap "$@"
exit 0
;; ;;
# falls back to cmd/help.rb on a non-zero return # falls back to cmd/help.rb on a non-zero return
help | --help | -h | --usage | "-?" | "") help | --help | -h | --usage | "-?" | "")