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.
This commit is contained in:
Brooke Kuhlmann
2021-01-04 19:30:18 -07:00
parent 85c85a5e80
commit 76432f5a74

View File

@@ -6,7 +6,7 @@
verify_homebrew_formulas() { verify_homebrew_formulas() {
printf "Checking Homebrew formulas...\n" printf "Checking Homebrew formulas...\n"
local applications="$(brew list)" local applications="$(brew list --formulae)"
while read line; do while read line; do
if [[ "$line" == "brew install"* ]]; then if [[ "$line" == "brew install"* ]]; then
@@ -29,7 +29,7 @@ export -f verify_homebrew_formulas
verify_homebrew_casks() { verify_homebrew_casks() {
printf "\nChecking Homebrew casks...\n" printf "\nChecking Homebrew casks...\n"
local applications="$(brew list --cask)" local applications="$(brew list --casks)"
while read line; do while read line; do
if [[ "$line" == "brew cask install"* ]]; then if [[ "$line" == "brew cask install"* ]]; then