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
|
homebrew-list "$@" && exit 0
|
||||||
;;
|
;;
|
||||||
# falls back to cmd/tap.rb on a non-zero return
|
# falls back to cmd/tap.rb on a non-zero return
|
||||||
tap*)
|
tap)
|
||||||
source "${HOMEBREW_LIBRARY}/Homebrew/tap.sh"
|
source "${HOMEBREW_LIBRARY}/Homebrew/tap.sh"
|
||||||
homebrew-tap "$@" && exit 0
|
homebrew-tap "$@" && exit 0
|
||||||
;;
|
;;
|
||||||
|
@ -14,19 +14,6 @@ normalise_tap_name() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
homebrew-tap() {
|
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"
|
local taplib="${HOMEBREW_LIBRARY}/Taps"
|
||||||
(
|
(
|
||||||
shopt -s extglob
|
shopt -s extglob
|
||||||
|
Loading…
x
Reference in New Issue
Block a user