From 2b180daf1e2687436046b853c59e0abe12c50f57 Mon Sep 17 00:00:00 2001 From: fxqnlr Date: Sat, 29 Apr 2023 23:59:54 +0200 Subject: added fallback if no primaries, removed prints --- src/cache.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cache.rs') diff --git a/src/cache.rs b/src/cache.rs index 11645d1..c928670 100644 --- a/src/cache.rs +++ b/src/cache.rs @@ -31,7 +31,7 @@ pub fn get_cached_versions(path: &str) -> HashMap { /// Panics if . pub fn copy_cached_version(version_path: &str, download_path: &str) { let versplit: Vec<&str> = version_path.split('/').collect(); - let download = format!("{}{}", download_path, versplit[versplit.len() - 1]); + let download = format!("{}/{}", download_path, versplit[versplit.len() - 1]); // println!("{:#?}", download); copy(version_path, download).unwrap(); } -- cgit v1.2.3