From e5489e49a547eb9b4f9dd53847137f0e9a48c7f9 Mon Sep 17 00:00:00 2001 From: trivernis Date: Sun, 3 May 2020 00:22:57 +0200 Subject: [PATCH] Fix reported exit code being always 0 --- src/runtime.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime.rs b/src/runtime.rs index ac8f089..dfa60fc 100644 --- a/src/runtime.rs +++ b/src/runtime.rs @@ -120,7 +120,7 @@ impl Runtime { .borrow_mut() .set_state(StateStripCommand::Off) .unwrap(); - return Ok(0); + return Ok(code); } self.current_index += 1;