diff options
author | Nicholas Rodrigues Lordello <nlordell@gmail.com> | 2021-04-21 17:48:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-21 17:48:28 +0200 |
commit | 320c19c7c09f18af7647f2a278dd8c3e18bffba4 (patch) | |
tree | b856e27f6489145e2caa24803a2b2df61717ccb1 /cli/tools | |
parent | 0a699f416b561c02e70f0fc0c44b484c504cb91a (diff) |
fix(installer): Remove double '.' from temporary archive extension on upgrade (#10289)
Diffstat (limited to 'cli/tools')
-rw-r--r-- | cli/tools/upgrade.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/tools/upgrade.rs b/cli/tools/upgrade.rs index cdca80dc7..ee138eb22 100644 --- a/cli/tools/upgrade.rs +++ b/cli/tools/upgrade.rs @@ -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()); |