From b7c89266f615c16de6de0d587ad27112ee77c471 Mon Sep 17 00:00:00 2001 From: Brooke Kuhlmann Date: Sat, 12 Sep 2020 09:37:01 -0600 Subject: [PATCH] Fixed Homebrew cask verifier deprecation warning Resolves the following warning when using Homebrew 2.5.0: Warning: Calling brew cask list is deprecated! Use brew list Removed conditional checks for the Skitch, Witch, and OpenEmu applications since they are no longer supported. --- lib/verifiers.sh | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/lib/verifiers.sh b/lib/verifiers.sh index 0fe162d..1204926 100644 --- a/lib/verifiers.sh +++ b/lib/verifiers.sh @@ -35,23 +35,12 @@ export -f verify_homebrew_formulas verify_homebrew_casks() { printf "\nChecking Homebrew casks...\n" - local applications="$(brew cask list)" + local applications="$(brew list --cask)" while read line; do # Skip blank or comment lines. if [[ "$line" == "brew cask install"* ]]; then local application=$(printf "$line" | awk '{print $4}') - - # Skip: Only necessary for the purpose of licensing system preference. - if [[ "$application" == "witch" ]]; then - continue - fi - - # Skip: Bug with Homebrew Cask as these apps never show up as installed. - if [[ "$application" == "skitch" || "$application" == "openemu" ]]; then - continue - fi - verify_listed_application "$application" "${applications[*]}" fi done < "$MAC_OS_CONFIG_PATH/bin/install_homebrew_casks"