Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Perform exact word match on brew + grep #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions twirl
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ ask() {
}

###############################################################################
#
#
###############################################################################

# return 1 if global command line program installed, else 0
Expand Down Expand Up @@ -546,7 +546,7 @@ gem_install_or_update() {
}

install_brews() {
if test ! $(brew list | grep $brew); then
if test ! $(brew list | grep -x $brew); then
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More info about this option:
image

echo_install "Installing $brew"
brew install $brew >/dev/null
print_in_green "${bold}✓ installed!${normal}\n"
Expand Down