Explorar el Código

fix(upgrader): correct old executable path handling for non-Windows systems in core upgrade process

Jacky hace 1 día
padre
commit
73553539ef
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      internal/upgrader/upgrade.go

+ 1 - 1
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))
 	}