Add app_exists
This commit is contained in:
parent
c2c9dee09b
commit
90146de46c
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue