diff --git a/submitPatches.go b/submitPatches.go index 79f0f2f..5eeda72 100644 --- a/submitPatches.go +++ b/submitPatches.go @@ -150,13 +150,13 @@ func submitPatchesBox(box *gui.Node) *patchSummary { } } s.submitB = s.grid.NewButton("Submit Patches", func() { - patchdir := filepath.Join(me.userHomePwd.String(), "autotypist.patchset") + dirname := "submit-patchset.quilt" + patchdir := filepath.Join(me.userHomePwd.String(), dirname) if shell.Exists(patchdir) { log.Info("patchset dir already exists", patchdir) - return - } else { - shell.Mkdir(patchdir) + shell.RunCmd(me.userHomePwd.String(), []string{"rm", "-rf", dirname}) } + shell.Mkdir(patchdir) if !shell.Exists(patchdir) { log.Info("something went wrong making", patchdir) return