mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
fix(upgrader): remove test binary during commit restart process
This commit is contained in:
parent
32fdc627bc
commit
f04e02cd25
1 changed files with 2 additions and 1 deletions
|
@ -87,6 +87,7 @@ func (u *Upgrader) TestCommitAndRestart() error {
|
||||||
|
|
||||||
if runtime.GOOS != "windows" {
|
if runtime.GOOS != "windows" {
|
||||||
_ = os.Remove(oldExe)
|
_ = os.Remove(oldExe)
|
||||||
|
_ = os.Remove(testBinaryPath)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Wait for file to be written
|
// Wait for file to be written
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue