with real exit
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Kasper Juul Hermansen 2022-08-14 22:06:31 +02:00
parent 4313c60056
commit 0ec196e8c9
Signed by: kjuulh
GPG Key ID: 0F95C140730F2F23
2 changed files with 7 additions and 3 deletions

View File

@ -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
));
} }
} }

View File

@ -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"