os/macos/{install,update}: refactor

This commit is contained in:
Henrik Lissner 2016-12-16 22:09:06 -05:00
parent 25cbd36f4c
commit 6b8989d1a1
2 changed files with 3 additions and 6 deletions

View file

@ -1,8 +1,7 @@
#!/bin/bash
# Install homebrew
if ! command -v brew;
then
if ! command -v brew; then
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Installing essentials

View file

@ -1,11 +1,9 @@
#!/bin/bash
if command -v brew;
then
if command -v brew; then
brew update
brew upgrade --all
brew upgrade
brew cleanup
brew prune
else
2>&1 echo "homebrew wasn't found"
fi