From 581404c6223dc3b6b1a5cda91b00473c6a442299 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sun, 14 Aug 2022 22:10:58 +0200 Subject: [PATCH] fix stuff --- cuddle_cli/src/actions/shell.rs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/cuddle_cli/src/actions/shell.rs b/cuddle_cli/src/actions/shell.rs index 41d4e56..a88e48b 100644 --- a/cuddle_cli/src/actions/shell.rs +++ b/cuddle_cli/src/actions/shell.rs @@ -56,11 +56,14 @@ Starting running shell action: {} } Some(n) => { log::info!("process exited with code: {}", n); - return Err(anyhow::anyhow!( - "{} exited with: {}", - path.clone().to_string_lossy(), - n - )); + + if n > 0 { + return Err(anyhow::anyhow!( + "{} exited with: {}", + path.clone().to_string_lossy(), + n + )); + } } }