summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-23 14:24:31 -0600
committerJeff Carr <[email protected]>2024-02-23 14:24:31 -0600
commit5f5f23643a127825d67946963313ee5301ee6505 (patch)
tree07b5848ada02e2555d33d6a087bd553fec97d4c2
parent2fa3f2b86393760610c096b6872269cb619c6959 (diff)
rename working dir
-rw-r--r--submitPatches.go8
1 files changed, 4 insertions, 4 deletions
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