fix: env version fixups #441

Merged
decentral1se merged 7 commits from write-env into main 2024-07-17 06:32:15 +00:00
Showing only changes of commit aedf5e5ff7 - Show all commits

View File

@ -584,6 +584,12 @@ func (a App) WriteRecipeVersion(version string) error {
lines = append(lines, line)
continue
}
if strings.HasPrefix(line, "#") {
lines = append(lines, line)
continue
}
splitted := strings.Split(line, ":")
line = fmt.Sprintf("%s:%s", splitted[0], version)
lines = append(lines, line)