diff --git a/README.md b/README.md index b04d89a..97738ea 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,7 @@ curl -L https://raw.githubusercontent.com/Yoobic/install-mac/master/install.sh | * Mongodb * Skype * Slack +* Spectacle * Sublime Text 3 * VirtualBox diff --git a/install.sh b/install.sh index 264baba..4569a0c 100755 --- a/install.sh +++ b/install.sh @@ -65,6 +65,7 @@ inquirer_software() { "Mongo" "Mongodb" on "Skype" "Skype" on "Slack" "Slack" on + "Spectacle" "Spectacle" on "SublimeText3" "Sublime Text 3" on "VirtualBox" "Virtual Box" on "Bower" "Bower" on @@ -141,12 +142,25 @@ inquirer_software ############ SOFTWARE ############ echo_title "BEGIN INSTALLING SOFTWARE" -brew install tree -brew install wget -brew install imagemagick -brew install git -brew install python - +if ( ! which tree >/dev/null); then + brew install tree; +fi +if ( ! which wget >/dev/null); then + brew install wget; +fi +if ( ! which imagemagick >/dev/null); then + brew install imagemagick; +fi +if ( ! which git >/dev/null); then + brew install git; +fi +if ( ! which python >/dev/null); then + brew install python; +fi + +if ([[ $choice == *"all"* ]] || [[ $choice == "Spectacle" ]]); then + brew cask install spectacle --force +fi if ([[ $choice == *"all"* ]] || [[ $choice == "SublimeText3" ]]); then brew cask install sublime-text3 --force fi diff --git a/test.sh b/test.sh index 38020a8..2af64c8 100755 --- a/test.sh +++ b/test.sh @@ -50,6 +50,7 @@ check_file "$(which subl)" "subl" # check Sublime Text version check_file $HOME/.zshrc check_file "$app_folder/Sublime Text.app" # check Sublime Text software check_file "$app_folder/iTerm.app" # check iTerm2 software +check_file "$app_folder/Spectacle.app" # check iTerm2 software #check_file "$app_folder/alfred.app" # check iTerm2 software check_file "$app_folder/Dropbox.app" # check Dropbox software check_file "$app_folder/Skype.app" # check Skype software