os/macos/{install,update}: refactor
This commit is contained in:
parent
25cbd36f4c
commit
6b8989d1a1
|
@ -1,8 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Install homebrew
|
# Install homebrew
|
||||||
if ! command -v brew;
|
if ! command -v brew; then
|
||||||
then
|
|
||||||
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
||||||
|
|
||||||
# Installing essentials
|
# Installing essentials
|
||||||
|
|
|
@ -1,11 +1,9 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if command -v brew;
|
if command -v brew; then
|
||||||
then
|
|
||||||
brew update
|
brew update
|
||||||
brew upgrade --all
|
brew upgrade
|
||||||
brew cleanup
|
brew cleanup
|
||||||
brew prune
|
|
||||||
else
|
else
|
||||||
2>&1 echo "homebrew wasn't found"
|
2>&1 echo "homebrew wasn't found"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue