Skip to content
Browse files

brew command: exit with nonzero status for unknown command name

Signed-off-by: Adam Vandenberg <>
  • Loading branch information...
1 parent c2c0033 commit aa00a56c4e110f9a795e6a14754ff1e612d1a0c6 @dougalsutherland dougalsutherland committed with adamv
Showing with 2 additions and 0 deletions.
  1. +2 −0 bin/brew
2 bin/brew
@@ -84,8 +84,10 @@ begin
# Check for git commands
if %w[branch checkout pull push rebase reset].include? cmd
onoe "Unknown command: #{cmd} (did you mean `git #{cmd}'?)"
+ exit 1
onoe "Unknown command: #{cmd}"
+ exit 1

0 comments on commit aa00a56

Please sign in to comment.
Something went wrong with that request. Please try again.