bash script to verify that brew cask is installed
I ended up asking this on stackoverflow, where I was able to come up with this.

if ! brew info cask &amp;&gt;/dev/null; then
  echo "Failed to install Cask (Homebrew Extension)"
  exit 1
fi