From 021f65d6a65ac2d715d24fb8b4d7b77f6a035c68 Mon Sep 17 00:00:00 2001 From: Hamid Adelyar Date: Mon, 23 Aug 2021 11:03:32 +0100 Subject: [PATCH] update brew cask install command --- twirl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/twirl b/twirl index 651a3b6..dfd975b 100755 --- a/twirl +++ b/twirl @@ -556,9 +556,9 @@ install_brews() { } install_application_via_brew() { - if [[ ! $(brew cask list | grep $cask) ]]; then + if [[ ! $(brew list --cask | grep $cask) ]]; then echo_install "Installing $cask" - brew cask install $cask --appdir=/Applications >/dev/null + brew install --cask $cask --appdir=/Applications >/dev/null print_in_green "${bold}✓ installed!${normal}\n" else print_success_muted "$cask already installed. Skipped."