fix brewfiles

This commit is contained in:
Noah Masur
2021-05-16 18:03:18 -04:00
parent 9cf4c348ee
commit 7cf8d00663
4 changed files with 10 additions and 13 deletions

View File

@ -5,12 +5,11 @@ cd "$DOTS" || (echo "Directory not found: $DOTS"; exit 1)
DOTS="$PWD"
all_brews() {
for brewfile in $(find "$DOTS/homebrew" -iname "*.Brewfile")
do
/usr/local/bin/brew bundle check --file "$brewfile" \
&& /usr/local/bin/brew bundle --file "$brewfile"
done \
&& echo "all brews installed ✓"
find "$DOTS/homebrew" \
-iname "*.Brewfile" \
-exec \
/usr/local/bin/brew bundle install --file "{}" \;
echo "all brews installed ✓"
}
all_brews