aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorDougal Sutherland2011-10-16 06:20:22 -0400
committerAdam Vandenberg2011-10-27 17:55:34 -0700
commit8e2002fc2798597a456233bac7fab46f1bcc30fb (patch)
tree0824057e33187028b51ae495b0869ead22da93fe /bin
parenta6877c02b02d9479794606bda26778cf4551e536 (diff)
downloadbrew-8e2002fc2798597a456233bac7fab46f1bcc30fb.tar.bz2
brew command: exit with nonzero status for unknown command name
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/brew2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/brew b/bin/brew
index 6440c3956..cc76f78f9 100755
--- a/bin/brew
+++ b/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
else
onoe "Unknown command: #{cmd}"
+ exit 1
end
end