This commit is contained in:
parent
21cda03b6d
commit
4313c60056
@ -50,7 +50,7 @@ impl CuddleAction {
|
|||||||
|
|
||||||
log::trace!("preparing to run action");
|
log::trace!("preparing to run action");
|
||||||
|
|
||||||
match ShellAction::new(
|
return match ShellAction::new(
|
||||||
self.name.clone(),
|
self.name.clone(),
|
||||||
format!(
|
format!(
|
||||||
"{}/scripts/{}.sh",
|
"{}/scripts/{}.sh",
|
||||||
@ -70,7 +70,7 @@ impl CuddleAction {
|
|||||||
log::error!("{}", e);
|
log::error!("{}", e);
|
||||||
Err(e)
|
Err(e)
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
CuddleScript::Dagger(_d) => Err(anyhow::anyhow!("not implemented yet!")),
|
CuddleScript::Dagger(_d) => Err(anyhow::anyhow!("not implemented yet!")),
|
||||||
}
|
}
|
||||||
|
@ -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;
|
use crate::model::CuddleVariable;
|
||||||
|
|
||||||
@ -44,7 +48,16 @@ Starting running shell action: {}
|
|||||||
}))
|
}))
|
||||||
.spawn()?;
|
.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!(
|
log::info!(
|
||||||
"
|
"
|
||||||
|
Loading…
Reference in New Issue
Block a user