rename working dir

This commit is contained in:
Jeff Carr 2024-02-23 14:24:31 -06:00
parent 2fa3f2b863
commit 5f5f23643a
1 changed files with 4 additions and 4 deletions

View File

@ -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