Skip to content

Commit

Permalink
Update versionChecker.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Traineratwot committed Sep 30, 2023
1 parent 6ec4e73 commit dd0fa51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/versionChecker.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def selfUpdate():
newFile = join(PROGRAM_PATH, "uvm.exe_new")
download(file['browser_download_url'], filename=newFile)
if exists(newFile):
cmd = f'cmd /c timeout /t 1 && DEL "{oldFile}" & REN "{newFile}" "{basename(oldFile)}"'
cmd = f'cmd /c timeout /t 1 && DEL "{oldFile}" & timeout /t 1 && REN "{newFile}" "{basename(oldFile)}"'
print(cmd)
subprocess.Popen(cmd, shell=True)
exit(2)
Expand Down

0 comments on commit dd0fa51

Please sign in to comment.