-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: check if mac apps installed before installation
- Loading branch information
1 parent
dbc30db
commit 977edd5
Showing
1 changed file
with
11 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -127,15 +127,19 @@ brew "zlib" | |
# Databases | ||
brew "[email protected]", link: true | ||
brew "libpq", link: true | ||
EOF | ||
|
||
# Mac apps | ||
cask "1password" | ||
cask "docker" | ||
cask "google-chrome" | ||
cask "iterm2" | ||
cask "rectangle" | ||
cask "slack" | ||
EOF | ||
apps=(1password docker google-chrome iterm2 rectangle slack) | ||
app_paths=(1Password.app Docker.app "Google Chrome.app" iTerm.app Rectangle.app Slack.app) | ||
|
||
for i in "${!apps[@]}"; do | ||
fancy_echo "Installing ${apps[$i]} ..." | ||
if [ ! -d "/Applications/${app_paths[$i]}" ]; then | ||
brew install --cask "${apps[$i]}" | ||
fi | ||
echo "${apps[$i]} installed." | ||
done | ||
|
||
if [ ! -d "$HOME/.asdf" ]; then | ||
fancy_echo "Installing asdf version manager ..." | ||
|