with real exit
This commit is contained in:
parent
4313c60056
commit
0ec196e8c9
@ -39,7 +39,7 @@ Starting running shell action: {}
|
|||||||
let current_dir = current_dir()?;
|
let current_dir = current_dir()?;
|
||||||
log::trace!("current executable dir={}", current_dir.to_string_lossy());
|
log::trace!("current executable dir={}", current_dir.to_string_lossy());
|
||||||
|
|
||||||
let mut process = Command::new(path)
|
let mut process = Command::new(path.clone())
|
||||||
.current_dir(current_dir)
|
.current_dir(current_dir)
|
||||||
.envs(variables.iter().map(|v| {
|
.envs(variables.iter().map(|v| {
|
||||||
log::trace!("{:?}", v);
|
log::trace!("{:?}", v);
|
||||||
@ -55,7 +55,12 @@ Starting running shell action: {}
|
|||||||
log::warn!("process exited without code")
|
log::warn!("process exited without code")
|
||||||
}
|
}
|
||||||
Some(n) => {
|
Some(n) => {
|
||||||
log::info!("process exited with code: {}", n)
|
log::info!("process exited with code: {}", n);
|
||||||
|
return Err(anyhow::anyhow!(
|
||||||
|
"{} exited with: {}",
|
||||||
|
path.clone().to_string_lossy(),
|
||||||
|
n
|
||||||
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,4 +22,3 @@ FROM docker:stable-dind
|
|||||||
|
|
||||||
COPY --from=base /usr/local/cargo/bin/ /usr/local/cargo/bin/
|
COPY --from=base /usr/local/cargo/bin/ /usr/local/cargo/bin/
|
||||||
ENV PATH="${PATH}:/usr/local/cargo/bin"
|
ENV PATH="${PATH}:/usr/local/cargo/bin"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user