mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Further simplify homebrew-tap
calling
Co-authored-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
This commit is contained in:
parent
a8d57385cf
commit
e9b158cd5c
@ -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
|
||||
;;
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user