Skip to content

Commit 7a739d3

Browse files
authored
Windows: tmp file must be called .cmd for CMD to run it - should work fine in other shells. (#201)
1 parent 9d2228c commit 7a739d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stage4/src/updater.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ pub async fn perform_update(ver: &str, force: bool) {
203203

204204
let final_path = env::var("GG_CMD_PATH").unwrap_or_else(|_| "gg.cmd".to_string());
205205
let final_path = final_path.replace('\\', "/");
206-
let temp_path = format!("{}.tmp", final_path);
206+
let temp_path = format!("{}.tmp.cmd", final_path);
207207

208208
println!("Updating: {}", final_path);
209209

0 commit comments

Comments
 (0)