rename working dir
This commit is contained in:
parent
2fa3f2b863
commit
5f5f23643a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue