-
Notifications
You must be signed in to change notification settings - Fork 0
/
homebrew.sh
46 lines (37 loc) · 884 Bytes
/
homebrew.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash
# Ask for the administrator password upfront
sudo -v
# Keep-alive: update existing `sudo` time stamp until this has finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
# Check for Homebrew and install it if missing
if test ! $(which brew)
then
echo "Installing Homebrew..."
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
brew tap homebrew/versions
brew tap homebrew/dupes
# Make sure we’re using the latest Homebrew
brew update
# Upgrade any already-installed formulae
brew upgrade --all
apps=(
coreutils
moreutils
findutils
ffmpeg
git
git-lfs
git-extras
imagemagick
rename
ssh-copy-id
speedtest_cli
testssl
webkit2png
wget
zopfli
)
brew install "${apps[@]}"
# Remove outdated versions from the cellar
brew cleanup