diff options
| author | Jeff Carr <[email protected]> | 2024-12-15 15:52:11 -0600 | 
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-15 15:52:11 -0600 | 
| commit | 24ddb803f3e6509f55c6ef4a033175f4fd00f26d (patch) | |
| tree | 8279583a2f47b285d6bba9a2e08b444576fb26be | |
| parent | 139653ba8c6676f7e9e2b501e9806b2bd8f02045 (diff) | |
maybe forge.ConfigSave() at the right time?v0.22.42
| -rw-r--r-- | releaseBox.go | 6 | 
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")  | 
