summaryrefslogtreecommitdiff
path: root/doPatch.go
diff options
context:
space:
mode:
Diffstat (limited to 'doPatch.go')
-rw-r--r--doPatch.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/doPatch.go b/doPatch.go
index 980f496..507b2fd 100644
--- a/doPatch.go
+++ b/doPatch.go
@@ -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() {