summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Rodrigues Lordello <nlordell@gmail.com>2021-04-21 17:48:28 +0200
committerGitHub <noreply@github.com>2021-04-21 17:48:28 +0200
commit320c19c7c09f18af7647f2a278dd8c3e18bffba4 (patch)
treeb856e27f6489145e2caa24803a2b2df61717ccb1
parent0a699f416b561c02e70f0fc0c44b484c504cb91a (diff)
fix(installer): Remove double '.' from temporary archive extension on upgrade (#10289)
-rw-r--r--cli/tools/upgrade.rs2
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());