Clean up
This commit is contained in:
parent
a53e2c683e
commit
0caac6d77b
11
install/mac
11
install/mac
|
@ -1,11 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
app_exists() {
|
function app_exists {
|
||||||
if [ -e /Applications/"$1".app ] || [ -e ~/Applications/"$1".app ]; then
|
[ -e /Applications/"$1".app ] || [ -e ~/Applications/"$1".app ]
|
||||||
return 0
|
|
||||||
else
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
source ~/.dotfiles/zsh/functions
|
source ~/.dotfiles/zsh/functions
|
||||||
|
@ -55,4 +51,5 @@ else
|
||||||
#app_exists "Sparrow" && brew cask install sparrow
|
#app_exists "Sparrow" && brew cask install sparrow
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
# Clean up
|
||||||
|
unset .f app_exists
|
||||||
|
|
Loading…
Reference in a new issue