Skip to content

Commit f5c3c5e

Browse files
committed
Get download path from config
1 parent b843e51 commit f5c3c5e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/rustup.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,14 @@ impl Context {
105105
let _ = fs::remove_dir_all(&dl);
106106
fs::create_dir_all(&dl)?;
107107

108+
let download_path = format!("{}/{}", self.config.download_dir, sha);
109+
108110
run(self
109111
.aws_s3()
110112
.arg("cp")
111113
.arg("--recursive")
112114
.arg("--only-show-errors")
113-
.arg(&self.s3_artifacts_url(&format!("builds/{sha}")))
115+
.arg(&self.s3_artifacts_url(&download_path))
114116
.arg(format!("{}/", dl.display())))?;
115117

116118
Ok(dl)

0 commit comments

Comments
 (0)