-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.sh
executable file
·37 lines (31 loc) · 912 Bytes
/
install.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
#!/usr/bin/env bash
#
# Homebrew
#
# This installs some of the common dependencies needed (or at least desired)
# using Homebrew.
set -e
# Check for Homebrew
if ! command -v brew >/dev/null 2>&1
then
echo " Installing Homebrew for you."
# Install the correct homebrew for each OS type
if test "$(uname)" = "Darwin"
then
bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
# elif test "$(expr substr $(uname -s) 1 5)" = "Linux"
# then
# ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install)"
else
echo "Homebrew not available on this system"
exit 0
fi
else
# Make sure we're using the latest Homebrew
brew update
fi
# Upgrade any already-installed formulae
brew upgrade
brew bundle install --no-lock --file ~/.dotfiles/homebrew/Brewfile
# Remove outdated versions from the cellar
brew cleanup