Skip to content

Instantly share code, notes, and snippets.

@itwars
Last active August 29, 2015 14:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save itwars/5623b29e677bd089cb3c to your computer and use it in GitHub Desktop.
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
#!/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