From 628805f0db99f4c4e7e5f1f9474bb1afd90f709e Mon Sep 17 00:00:00 2001 From: Alexander Borovsky Date: Wed, 13 Feb 2013 14:35:53 +0300 Subject: [PATCH] Fixed exit status returning --- bin/mina | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/mina b/bin/mina index c8e684a5..f3da08cf 100755 --- a/bin/mina +++ b/bin/mina @@ -58,7 +58,7 @@ Rake.application.instance_eval do puts "" scope.print_error "Command failed." scope.print_stderr "#{e.message}" - exit e.exitstatus + exit(e.exitstatus > 255 ? e.exitstatus >> 8 : e.exit_status) end end end