0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-03 09:31:22 -05:00

fix(installer): Remove double '.' from temporary archive extension on upgrade (#10289)

This commit is contained in:
Nicholas Rodrigues Lordello 2021-04-21 17:48:28 +02:00 committed by GitHub
parent 0a699f416b
commit 320c19c7c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -184,7 +184,7 @@ pub fn unpack(
// to the newly uncompressed file without fear of the tempdir being deleted.
let temp_dir = TempDir::new()?.into_path();
let exe_ext = if is_windows { "exe" } else { "" };
let archive_path = temp_dir.join(exe_name).with_extension(".zip");
let archive_path = temp_dir.join(exe_name).with_extension("zip");
let exe_path = temp_dir.join(exe_name).with_extension(exe_ext);
assert!(!exe_path.exists());