Last active
August 29, 2015 14:01
-
-
Save itwars/5623b29e677bd089cb3c to your computer and use it in GitHub Desktop.
Snippet that you must start right after a brew update to be notify of what brew cask app need to be updated on your Mac OSX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
#┌───────────────────────────────┐ | |
#│ Print cask packages thet need │ | |
#│ to be updated │ | |
#└───────────────────────────────┘ | |
caskList=( $(brew cask list) ) | |
for i in "${caskList[@]}"; do | |
info=( $(brew cask info $i) ) | |
if [[ " ${info[*]} " == *"Not installed"* ]]; then | |
echo ${info[0]%?} | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment