Commit aac318d593
Unsigned
Layout: unified · split
internal/update.go +5
| @@ -244,6 +244,11 @@ if not errorlevel 1 ( | ||
| 244 | 244 | if exist "%%OLD%%" del /F /Q "%%OLD%%" >NUL 2>NUL |
| 245 | 245 | if exist "%%TARGET%%" move /Y "%%TARGET%%" "%%OLD%%" >NUL |
| 246 | 246 | move /Y "%%SOURCE%%" "%%TARGET%%" >NUL |
| 247 | if errorlevel 1 ( | |
| 248 | if exist "%%OLD%%" move /Y "%%OLD%%" "%%TARGET%%" >NUL 2>NUL | |
| 249 | del /F /Q "%%~f0" >NUL 2>NUL | |
| 250 | exit /B 1 | |
| 251 | ) | |
| 247 | 252 | if exist "%%OLD%%" del /F /Q "%%OLD%%" >NUL 2>NUL |
| 248 | 253 | del /F /Q "%%~f0" >NUL 2>NUL |
| 249 | 254 | `, executablePath, tmpPath, executablePath, os.Getpid(), os.Getpid()) |