lib/mothership.rb in mothership-0.0.7 vs lib/mothership.rb in mothership-0.0.8

- old
+ new

@@ -44,10 +44,15 @@ cmd = @@commands[cmdname] return app.unknown_command(cmdname) unless cmd app.execute(cmd, argv) - exit @@exit_status + code = @@exit_status + + # reset exit status + @@exit_status = 0 + + exit code end end # set the exit status def exit_status(num)