summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--releaseBox.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/releaseBox.go b/releaseBox.go
index cfef2a2..f42b107 100644
--- a/releaseBox.go
+++ b/releaseBox.go
@@ -151,11 +151,15 @@ func createReleaseBox(box *gui.Node) {
s := fmt.Sprint(duration)
log.Info("release returned", ok, "and ran for", s, "findCounter =", findCounter)
third := findCounter
- log.Info("doReleaseAll() first =", first, "second =", second, "third =", third)
+ log.Info("doReleaseAll() findCounter first =", first, "second =", second, "third =", third)
if !findOk {
log.Info("doRelease() immediately end something went wrong last time. findOk == false")
return
}
+ if (second == 0) && (third == 0) {
+ log.Info("doReleaseAll() SaveConfig() here and Exit(0)")
+ me.forge.ConfigSave()
+ }
} else {
log.Info("doReleaseAll() first second match. something has gone terribly wrong")
log.Info("killing guireleaser is a bad idea here. it will potentially loose state")