1
0
Fork 0
mirror of https://github.com/correl/dotfiles.git synced 2025-04-05 09:12:24 -09:00

[provisioning] Add recipe support for brew cask

This commit is contained in:
Correl Roush 2018-02-23 10:19:52 -05:00
parent 68e85b7d14
commit 45855db60d
2 changed files with 10 additions and 1 deletions
recipes

View file

@ -10,6 +10,15 @@ function _brew {
fi
}
function _brew_cask {
local pkg=$1
if ! brew cask list $pkg >/dev/null 2>&1; then
_run "[brew cask] Install $pkg" brew cask install $@
else
echo "[brew cask] $pkg is already installed, skipping."
fi
}
case "$(uname -s)" in
Darwin)
if ! which brew >/dev/null; then

View file

@ -4,7 +4,7 @@ set +e
case "$(uname -s)" in
Darwin)
_recipe brew
brew cask install mactex
_brew_cask mactex
;;
*)
_recipe _apt