Fix check for successful command runs

main
trivernis 11 months ago
parent 491a8d1a69
commit b59867d832
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -54,11 +54,11 @@ impl Action {
let stdout = String::from_utf8_lossy(&output.stdout[..]);
log::debug!("Command output is: {}", stdout);
if stderr.len() > 0 {
if output.status.success() {
Ok(())
} else {
log::error!("Errors occurred during command execution: {}", stderr);
Err(MultihookError::ActionError(stderr.into_owned()))
} else {
Ok(())
}
}
}

Loading…
Cancel
Save