fix: avoid overwriting non version env vars

See coop-cloud/organising#630
This commit is contained in:
2024-07-24 16:07:08 +02:00
parent 827edcb0da
commit 518c5795f4
8 changed files with 36 additions and 17 deletions

View File

@ -258,7 +258,7 @@ EXAMPLE:
app.Recipe.Version = chaosVersion
}
log.Debugf("choosing %s as version to save to env file", app.Recipe.Version)
if err := app.WriteRecipeVersion(app.Recipe.Version); err != nil {
if err := app.WriteRecipeVersion(app.Recipe.Version, false); err != nil {
log.Fatalf("writing new recipe version in env file: %s", err)
}