From 04a61fbca454e517fdf3b6ce902a1795fab8c80f Mon Sep 17 00:00:00 2001 From: Michael Cho Date: Fri, 16 Dec 2022 13:37:15 -0800 Subject: [PATCH] items.sh: return early when no Taps directory --- Library/Homebrew/items.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/items.sh b/Library/Homebrew/items.sh index 4a65589731..4c436fed39 100644 --- a/Library/Homebrew/items.sh +++ b/Library/Homebrew/items.sh @@ -17,6 +17,7 @@ homebrew-items() { # HOMEBREW_REPOSITORY is set by brew.sh # shellcheck disable=SC2154 + [[ -d "${HOMEBREW_REPOSITORY}/Library/Taps" ]] || return items="$( find "${HOMEBREW_REPOSITORY}/Library/Taps" \ -type d \( \