phinze/homebrew-cask — pull request #2563 by rolandwalker (2014-01-23 15:11:32+00:00)
Title: refactor bash scripts into functions

add some comments

Per request from @NanoXD. There are still shared variables, not everything moves easily into a function.