remove auth file before re-writting

This commit is contained in:
= 2024-11-26 15:52:29 -07:00
parent dadf5f641b
commit aed69860de

View File

@ -90,6 +90,7 @@ func (a *App) CheckPrerequisites() {
return
}
}
os.Remove(filepath.Join(dir, "FCLauncher", "authentication.json"))
os.MkdirAll(filepath.Join(dir, "FCLauncher"), 0755)
f, _ := os.OpenFile(filepath.Join(dir, "FCLauncher", "authentication.json"), os.O_CREATE|os.O_RDWR, 0755)
defer f.Close()