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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user