From 6b8989d1a1fc7b230d66c3e6de1d8418c5dcc741 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 16 Dec 2016 22:09:06 -0500 Subject: [PATCH] os/macos/{install,update}: refactor --- os/macos/install | 3 +-- os/macos/update | 6 ++---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/os/macos/install b/os/macos/install index 36f33b0b..d5ed1154 100755 --- a/os/macos/install +++ b/os/macos/install @@ -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 diff --git a/os/macos/update b/os/macos/update index 88012669..bdcddb48 100755 --- a/os/macos/update +++ b/os/macos/update @@ -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