This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
use std::{env::current_dir, path::PathBuf, process::Command};
|
||||
use std::{
|
||||
env::current_dir,
|
||||
path::PathBuf,
|
||||
process::{Command, ExitStatus},
|
||||
};
|
||||
|
||||
use crate::model::CuddleVariable;
|
||||
|
||||
@@ -44,7 +48,16 @@ Starting running shell action: {}
|
||||
}))
|
||||
.spawn()?;
|
||||
|
||||
process.wait()?;
|
||||
let status = process.wait()?;
|
||||
|
||||
match status.code() {
|
||||
None => {
|
||||
log::warn!("process exited without code")
|
||||
}
|
||||
Some(n) => {
|
||||
log::info!("process exited with code: {}", n)
|
||||
}
|
||||
}
|
||||
|
||||
log::info!(
|
||||
"
|
||||
|
Reference in New Issue
Block a user