diff --git a/root/update.go b/root/update.go index 7045089..ae286e6 100644 --- a/root/update.go +++ b/root/update.go @@ -63,6 +63,7 @@ func SaveUpdateState(s updateState) { return } data, _ := json.MarshalIndent(s, "", " ") + _ = os.MkdirAll(filepath.Dir(file), 0755) _ = os.WriteFile(file, data, 0644) }