diff options
| -rw-r--r-- | doPatch.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -107,14 +107,19 @@ func doPatch() error { } func doPatchGet(newpb *forgepb.Sets) { + // var changed bool curpatches := forgepb.NewPatches() curpatches.Filename = "/tmp/curpatches.pb" if err := curpatches.Load(); err != nil { + curpatches.Save() + curpatches.Save() log.Info(err) + panic("no file") // return // // THIS IS NEEDED? NOTSURE curpatches = forgepb.NewPatches() curpatches.Filename = "/tmp/curpatches.pb" + curpatches.Save() } // newpb.PrintTable() for pset := range newpb.IterAll() { |
