Skip to content

Commit

Permalink
brew: fix duplication in error messages and improve styling
Browse files Browse the repository at this point in the history
  • Loading branch information
balupton committed Oct 9, 2024
1 parent 2582cdf commit 1dbdd43
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions commands/brew
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,10 @@ function brew_() (
- disable brew environment hints, as Dorothy handles that better via [setup-environment-commands]
EOF
if test -z "$bin"; then
__print_line
echo-style --error='Homebrew is not installed.'
if is-mac; then
echo-style --error='Homebrew is not installed.' ' ' --notice='Install it with:' ' ' --code='setup-mac-brew'
echo-style --error1='Homebrew is not installed.' --notice1=' Install it with: ' --code-notice1='setup-mac-brew'
else
echo-style --error='Homebrew is not installed.'
echo-style --error1='Homebrew is not installed.'
fi
# ^ don't use get-installer, as bash v5 may not exist yet
return 74 # EPROGUNAVAIL 74 RPC prog. not avail
Expand Down

0 comments on commit 1dbdd43

Please sign in to comment.