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 + )); + } } }