]> Cypherpunks.ru repositories - goredo.git/blobdiff - main.go
Do not acquire job token when exiting top level instance
[goredo.git] / main.go
diff --git a/main.go b/main.go
index 8c9c16da1430a761779856688da8382b82a98e18..860d63a5bd43f315a97350ca6efeaf729a332662 100644 (file)
--- a/main.go
+++ b/main.go
@@ -40,6 +40,7 @@ import (
 var (
        Cwd       string
        BuildUUID string
+       IsTopRedo bool // is it the top redo instance
 )
 
 func mustSetenv(key, value string) {
@@ -229,6 +230,7 @@ func main() {
        BuildUUID = os.Getenv(EnvBuildUUID)
        tgtsWasEmpty := len(tgts) == 0
        if BuildUUID == "" {
+               IsTopRedo = true
                raw := new([16]byte)
                if _, err = io.ReadFull(rand.Reader, raw[:]); err != nil {
                        log.Fatalln(err)