Permalink
Browse files

Return 1 on failure, not on success

  • Loading branch information...
1 parent f9cfc96 commit 803287e6c207872ab5c3263b22cdb002c81bc7c0 @jnicklas jnicklas committed Jul 9, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 bin/evergreen
View
@@ -6,8 +6,8 @@ require 'evergreen'
begin
# The dup is to keep ARGV intact, so that tools like ruby-debug can respawn.
- failure = Evergreen::Cli.execute(ARGV.dup)
- Kernel.exit(failure ? 1 : 0)
+ success = Evergreen::Cli.execute(ARGV.dup)
+ Kernel.exit(success ? 0 : 1)
rescue SystemExit => e
Kernel.exit(e.status)
rescue Exception => e

0 comments on commit 803287e

Please sign in to comment.