chore(update): ensure the directory exists

This commit is contained in:
verse91
2026-05-10 01:13:28 +07:00
parent caf4aa344e
commit 21bd993469
+1
View File
@@ -63,6 +63,7 @@ func SaveUpdateState(s updateState) {
return
}
data, _ := json.MarshalIndent(s, "", " ")
_ = os.MkdirAll(filepath.Dir(file), 0755)
_ = os.WriteFile(file, data, 0644)
}