Browse Source

skip if no exist

pull/629/head
JT 8 months ago
parent
commit
67dd8c53b6
  1. 3
      StabilityMatrix.Core/Models/Packages/KohyaSs.cs

3
StabilityMatrix.Core/Models/Packages/KohyaSs.cs

@ -241,6 +241,9 @@ public class KohyaSs(
foreach (var file in filesToUpdate)
{
var path = Path.Combine(guiDirExists ? kohyaGuiDir : installedPackagePath, file);
if (!File.Exists(path))
continue;
var text = File.ReadAllText(path);
if (text.Contains(replacementAcceleratePath.Replace(@"\", @"\\")))
continue;

Loading…
Cancel
Save