Add app_exists

This commit is contained in:
Henrik Lissner 2013-10-21 06:45:56 -04:00
parent c2c9dee09b
commit 90146de46c

View file

@ -12,6 +12,11 @@ function is_linux {
if is_mac; then
# Check to see if the (mac) app exists
function app_exists {
[ -d /Applications/"$1" ] || [ -e /Applications/"$1".app ] || [ -e ~/Applications/"$1".app ]
}
if command_exists brew; then
function pkg_install() {