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:
parent
0a699f416b
commit
320c19c7c0
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue