diff --git a/internal/build/env.go b/internal/build/env.go index 0854fba2498d..9cfcbb69b343 100644 --- a/internal/build/env.go +++ b/internal/build/env.go @@ -170,8 +170,5 @@ func applyEnvFlags(env Environment) Environment { if *CronJobFlag { env.IsCronJob = true } - if *UbuntuVersionFlag != "" { - env.UbuntuVersion = *UbuntuVersionFlag - } return env }