cli: Remove solana installer file after build (#590)
This commit is contained in:
parent
84c3288f32
commit
4bf710c771
|
@ -663,6 +663,17 @@ fn docker_build(
|
|||
if !exit.status.success() {
|
||||
return Err(anyhow!("Failed to set solana version"));
|
||||
}
|
||||
|
||||
// Remove the installer.
|
||||
let exit = std::process::Command::new("docker")
|
||||
.args(&["exec", container_name, "rm", "-f", "solana_installer.sh"])
|
||||
.stdout(Stdio::inherit())
|
||||
.stderr(Stdio::inherit())
|
||||
.output()
|
||||
.map_err(|e| anyhow!("Failed to remove installer: {:?}", e))?;
|
||||
if !exit.status.success() {
|
||||
return Err(anyhow!("Failed to remove installer"));
|
||||
}
|
||||
}
|
||||
|
||||
let manifest_path = pathdiff::diff_paths(
|
||||
|
|
Loading…
Reference in New Issue