Replacement for ‘brew bundle’

January 24, 2015 — Leave a comment

Since ‘brew bundle’ has been deprecated, here is a temporary fix.

Create a file named brew-bundle and write the code below.

#!/usr/bin/env sh
[ -f "Brewfile" ] || (echo "No Brewfile found" 1>&2 && exit -1)
while read line
  [ "${line###*}" ] && brew $line
done < Brewfile

Place file in ~/bin/ and chmod +x ~/bin/brew-bundle

You’re now able to use your Brewfile again.


Posts Twitter Facebook

My name is Michael Le, and I am a web developer.

No Comments

Be the first to start the conversation.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.