mirror of
https://github.com/natelandau/shell-scripting-templates.git
synced 2025-11-10 14:13:45 -05:00
added 'brew tap caskroom/versions'
This commit is contained in:
@@ -20,7 +20,7 @@
|
|||||||
hasHomebrew () {
|
hasHomebrew () {
|
||||||
# Check for Homebrew
|
# Check for Homebrew
|
||||||
if type_not_exists 'brew'; then
|
if type_not_exists 'brew'; then
|
||||||
warning "No Homebrew. Gots to install it."
|
warning "No Homebrew. Gots to install it..."
|
||||||
seek_confirmation "Install Homebrew?"
|
seek_confirmation "Install Homebrew?"
|
||||||
if is_confirmed; then
|
if is_confirmed; then
|
||||||
# Ensure that we can actually, like, compile anything.
|
# Ensure that we can actually, like, compile anything.
|
||||||
@@ -35,7 +35,7 @@ hasHomebrew () {
|
|||||||
fi
|
fi
|
||||||
# Check for Git
|
# Check for Git
|
||||||
if type_not_exists 'git'; then
|
if type_not_exists 'git'; then
|
||||||
die "Git should be installed. It isn't. Aborting."
|
die "Git should be installed. It isn't."
|
||||||
fi
|
fi
|
||||||
# Install Homebrew
|
# Install Homebrew
|
||||||
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
||||||
@@ -69,6 +69,7 @@ hasCasks () {
|
|||||||
if ! $(brew cask > /dev/null); then
|
if ! $(brew cask > /dev/null); then
|
||||||
brew install caskroom/cask/brew-cask
|
brew install caskroom/cask/brew-cask
|
||||||
brew tap caskroom/fonts
|
brew tap caskroom/fonts
|
||||||
|
brew tap caskroom/versions
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -130,13 +131,13 @@ function doInstall () {
|
|||||||
do
|
do
|
||||||
seek_confirmation "Install $item?"
|
seek_confirmation "Install $item?"
|
||||||
if is_confirmed; then
|
if is_confirmed; then
|
||||||
$INSTALLCOMMAND $item
|
${INSTALLCOMMAND} $item
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
for item in ${list[@]}
|
for item in ${list[@]}
|
||||||
do
|
do
|
||||||
$INSTALLCOMMAND $item
|
${INSTALLCOMMAND} $item
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user