minamarkham / formation

💻 macOS setup script for front-end development
http://slay.sh
MIT License
1.77k stars 173 forks source link

Perform exact word match on brew + grep #23

Open gnclmorais opened 4 years ago

gnclmorais commented 4 years ago

Example: if looking for “git” and there is “git” and “gitish” on the results list, this command will complain because grep encounters more than one match. This fix makes sure it matches on the whole word.

Without this flag, I was getting more than one matches with the words git and heroku:

✦  4. Installing Homebrew formulae…
└─────────────────────────────────────────────────────○
  [↓] Installing asciinema Updating Homebrew...
✓ installed!
  [✓] fish already installed. Skipped.
twirl: line 549: test: git: unary operator expected
  [✓] git already installed. Skipped.
twirl: line 549: test: heroku-node: binary operator expected

P.S.: Thanks for this repo, super useful to set up new MacBooks! 🙌

gnclmorais commented 3 years ago

Hey @minamarkham, are you still supporting this project? I’d be happy to help as a maintainer, I really like it. 😃