From 0caac6d77b30d7a46f050ad2c034ded6243912f9 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 21 Oct 2013 04:18:31 -0400 Subject: [PATCH] Clean up --- install/mac | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/install/mac b/install/mac index a00dea47..d096c069 100755 --- a/install/mac +++ b/install/mac @@ -1,11 +1,7 @@ #!/bin/sh -app_exists() { - if [ -e /Applications/"$1".app ] || [ -e ~/Applications/"$1".app ]; then - return 0 - else - return 1 - fi +function app_exists { + [ -e /Applications/"$1".app ] || [ -e ~/Applications/"$1".app ] } source ~/.dotfiles/zsh/functions @@ -55,4 +51,5 @@ else #app_exists "Sparrow" && brew cask install sparrow fi -exit 0 +# Clean up +unset .f app_exists