diff --git a/internal/upgrader/upgrade.go b/internal/upgrader/upgrade.go index 9f08af19..3e1b99cf 100644 --- a/internal/upgrader/upgrade.go +++ b/internal/upgrader/upgrade.go @@ -219,7 +219,7 @@ func (u *Upgrader) PerformCoreUpgrade(tarPath string) (err error) { defer updateInProgress.Store(false) oldExe := "" - if runtime.GOOS != "windows" { + if runtime.GOOS == "windows" { oldExe = filepath.Join(filepath.Dir(u.ExPath), ".nginx-ui.old."+strconv.FormatInt(time.Now().Unix(), 10)) }