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() {
|
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) {
|
if shell.Exists(patchdir) {
|
||||||
log.Info("patchset dir already exists", patchdir)
|
log.Info("patchset dir already exists", patchdir)
|
||||||
return
|
shell.RunCmd(me.userHomePwd.String(), []string{"rm", "-rf", dirname})
|
||||||
} else {
|
|
||||||
shell.Mkdir(patchdir)
|
|
||||||
}
|
}
|
||||||
|
shell.Mkdir(patchdir)
|
||||||
if !shell.Exists(patchdir) {
|
if !shell.Exists(patchdir) {
|
||||||
log.Info("something went wrong making", patchdir)
|
log.Info("something went wrong making", patchdir)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue