Skip to content

Commit

Permalink
Merge pull request #5 from Traineratwot/dev
Browse files Browse the repository at this point in the history
Update versionChecker.py
  • Loading branch information
Traineratwot authored Sep 30, 2023
2 parents 9148970 + dd0fa51 commit f253ac3
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 f253ac3

Please sign in to comment.