From 76432f5a74057d99d090938f0e88ffef89596a7d Mon Sep 17 00:00:00 2001 From: Brooke Kuhlmann Date: Mon, 4 Jan 2021 19:30:18 -0700 Subject: [PATCH] Fixed brew formulae list error Resolves the following from happening: Error: Calling `brew list` to only list formulae is disabled! Use `brew list --formula` instead. Includes a correction for the plural form for `casks` as well. --- lib/verifiers.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/verifiers.sh b/lib/verifiers.sh index 4b62e50..c1096bf 100644 --- a/lib/verifiers.sh +++ b/lib/verifiers.sh @@ -6,7 +6,7 @@ verify_homebrew_formulas() { printf "Checking Homebrew formulas...\n" - local applications="$(brew list)" + local applications="$(brew list --formulae)" while read line; do if [[ "$line" == "brew install"* ]]; then @@ -29,7 +29,7 @@ export -f verify_homebrew_formulas verify_homebrew_casks() { printf "\nChecking Homebrew casks...\n" - local applications="$(brew list --cask)" + local applications="$(brew list --casks)" while read line; do if [[ "$line" == "brew cask install"* ]]; then