From feb5f59c3491657436fbebf78e573e32a75fc7f7 Mon Sep 17 00:00:00 2001 From: Jeremy Kaplan Date: Fri, 7 Feb 2020 17:31:33 -0800 Subject: [PATCH] brew: Make install script robust to aliases --- brew/formulae | 2 +- brew/install | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/brew/formulae b/brew/formulae index 8898e6f..7dcbf05 100644 --- a/brew/formulae +++ b/brew/formulae @@ -5,7 +5,7 @@ entr fd fzf github/gh/gh -gpg2 +gnupg htop jq moreutils diff --git a/brew/install b/brew/install index 1140128..e5556be 100755 --- a/brew/install +++ b/brew/install @@ -1,4 +1,6 @@ #!/usr/bin/env bash -comm -13 <(brew list) brew/formulae | xargs brew install -comm -13 <(brew cask list) brew/casks | xargs brew cask install +set -eo pipefail + +comm -13 <(brew list --full-name | sort) brew/formulae | xargs brew install -t +comm -13 <(brew cask list) brew/casks | xargs brew cask install -t