diff --git a/src/main.rs b/src/main.rs index bc425f4..3f714f8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -152,7 +152,9 @@ pub fn build(image: &str, ci: bool) { ]); } - docker_script.extend([move_pkg]); + if !ci { + docker_script.extend([move_pkg]); + } // Build the Docker run command let status = if ci { @@ -220,6 +222,7 @@ pub fn build(image: &str, ci: bool) { if !status.success() { eprintln!("Build failed with status: {:?}", status); + std::process::exit(status.code().unwrap()); } }