items.sh: return early when no Taps directory

This commit is contained in:
Michael Cho 2022-12-16 13:37:15 -08:00
parent 7d04dd9d68
commit 04a61fbca4
No known key found for this signature in database
GPG Key ID: F0487049DAE15338

View File

@ -17,6 +17,7 @@ homebrew-items() {
# HOMEBREW_REPOSITORY is set by brew.sh # HOMEBREW_REPOSITORY is set by brew.sh
# shellcheck disable=SC2154 # shellcheck disable=SC2154
[[ -d "${HOMEBREW_REPOSITORY}/Library/Taps" ]] || return
items="$( items="$(
find "${HOMEBREW_REPOSITORY}/Library/Taps" \ find "${HOMEBREW_REPOSITORY}/Library/Taps" \
-type d \( \ -type d \( \