Skip to content

Commit

Permalink
fix: ignore command exit code and just use stderr/stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
evilsocket committed Jun 28, 2024
1 parent b50cf54 commit 74476b3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/agent/task/tasklet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,8 @@ impl Action for TaskletAction {

if !err.is_empty() {
Err(anyhow!(err))
} else if output.status.success() {
Ok(Some(out))
} else {
Err(anyhow!(err))
Ok(Some(out))
}
} else {
let err = output.err().unwrap().to_string();
Expand Down

0 comments on commit 74476b3

Please sign in to comment.