Skip to content

Commit

Permalink
Merge pull request #121 from bval/update-homebrew-bundle-on-re-run
Browse files Browse the repository at this point in the history
Improve test for existing Brewfile
  • Loading branch information
MikeMcQuaid authored Oct 24, 2017
2 parents 337c9c4 + 0f90b15 commit 4b6c4ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/strap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ if [ -n "$STRAP_GITHUB_USER" ]; then
fi

# Setup Brewfile
if [ -n "$STRAP_GITHUB_USER" ] && ! [ -f "$HOME/.Brewfile" ]; then
if [ -n "$STRAP_GITHUB_USER" ] && ( [ ! -f "$HOME/.Brewfile" ] || [ "$HOME/.Brewfile" -ef "$HOME/.homebrew-brewfile/Brewfile" ] ); then
HOMEBREW_BREWFILE_URL="https://github.com/$STRAP_GITHUB_USER/homebrew-brewfile"

if git ls-remote "$HOMEBREW_BREWFILE_URL" &>/dev/null; then
Expand Down

0 comments on commit 4b6c4ab

Please sign in to comment.