mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
brew command: exit with nonzero status for unknown command name
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
a6877c02b0
commit
8e2002fc27
2
bin/brew
2
bin/brew
@ -84,8 +84,10 @@ begin
|
|||||||
# Check for git commands
|
# Check for git commands
|
||||||
if %w[branch checkout pull push rebase reset].include? cmd
|
if %w[branch checkout pull push rebase reset].include? cmd
|
||||||
onoe "Unknown command: #{cmd} (did you mean `git #{cmd}'?)"
|
onoe "Unknown command: #{cmd} (did you mean `git #{cmd}'?)"
|
||||||
|
exit 1
|
||||||
else
|
else
|
||||||
onoe "Unknown command: #{cmd}"
|
onoe "Unknown command: #{cmd}"
|
||||||
|
exit 1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user