diff --git a/dependencies/brew.sh b/dependencies/brew.sh index 271552a..cac212a 100644 --- a/dependencies/brew.sh +++ b/dependencies/brew.sh @@ -32,17 +32,17 @@ install_brew() { } install_cask() { - if [[ ! $(brew cask list | grep $1) ]]; then + if [[ ! $(brew list --cask | grep $1) ]]; then print_info "Installing $1" - brew cask install $1 --appdir=/Applications >/dev/null - print_success "${bold} ✓ installed. ${normal}" + brew install --cask $1 --appdir=/Applications >/dev/null + print_success "${bold} ✓ installed. $1 ${normal}" else print_success "$1 already installed." fi } tap_cask() { - if [[ ! $(brew cask list | grep $1) ]]; then + if [[ ! $(brew list --cask| grep $1) ]]; then print_info "Tapping cask $1" brew tap $1 >/dev/null print_success "${bold} ✓ tapped. ${normal}" @@ -67,6 +67,6 @@ install_brew_packages(){ done else - print_error "Pagackes file not found" + print_error "Pacage file not found" fi }