aboutsummaryrefslogtreecommitdiffstats
path: root/bin/brew
diff options
context:
space:
mode:
authorDougal Sutherland2011-10-16 06:20:22 -0400
committerAdam Vandenberg2011-10-27 17:55:34 -0700
commitaa00a56c4e110f9a795e6a14754ff1e612d1a0c6 (patch)
tree6f562155ffeb55637be86e627a05124991a54ac4 /bin/brew
parentc2c0033a5153739f054a39fb546e4da45a2ad021 (diff)
downloadhomebrew-aa00a56c4e110f9a795e6a14754ff1e612d1a0c6.tar.bz2
brew command: exit with nonzero status for unknown command name
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'bin/brew')
-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