requested changes

This commit is contained in:
Daniel Hougaard
2025-06-05 05:23:30 +04:00
parent a4c21d85ac
commit caa129b565
4 changed files with 8 additions and 6 deletions

View File

@@ -299,7 +299,7 @@ func GetCmdFlagOrEnv(cmd *cobra.Command, flag string, envNames []string) (string
}
if value == "" {
for _, env := range envNames {
value = os.Getenv(env)
value = strings.TrimSpace(os.Getenv(env))
if value != "" {
break
}