cli: Remove solana installer file after build (#590)

This commit is contained in:
Armani Ferrante 2021-08-08 18:47:11 -07:00 committed by GitHub
parent 84c3288f32
commit 4bf710c771
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

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