Further simplify homebrew-tap calling

Co-authored-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
This commit is contained in:
Ruoyu Zhong 2024-09-25 11:59:22 +08:00
parent a8d57385cf
commit e9b158cd5c
No known key found for this signature in database
2 changed files with 1 additions and 14 deletions

View File

@ -173,7 +173,7 @@ case "$@" in
homebrew-list "$@" && exit 0
;;
# falls back to cmd/tap.rb on a non-zero return
tap*)
tap)
source "${HOMEBREW_LIBRARY}/Homebrew/tap.sh"
homebrew-tap "$@" && exit 0
;;

View File

@ -14,19 +14,6 @@ normalise_tap_name() {
}
homebrew-tap() {
case "$1" in
# check we actually have tap and not e.g. tapsomething
tap) ;;
tap*) return 1 ;;
*) ;;
esac
# Named args are handled by the Ruby code.
if [[ "$#" -gt 1 ]]
then
return 1
fi
local taplib="${HOMEBREW_LIBRARY}/Taps"
(
shopt -s extglob