fix env vars
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Evan Reichard 2025-09-20 21:29:40 -04:00
parent c83ce9e4e0
commit 31add1984b
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
cover.html cover.html
.DS_Store

View File

@ -111,7 +111,7 @@ func GetVersion() string {
func getConfigValue(cmdFlags *pflag.FlagSet, def ConfigDef) string { func getConfigValue(cmdFlags *pflag.FlagSet, def ConfigDef) string {
// 1. Get Flags First // 1. Get Flags First
if cmdFlags != nil { if cmdFlags != nil {
if val, err := cmdFlags.GetString(def.Key); err == nil && val != "" { if val, err := cmdFlags.GetString(def.Key); err == nil && val != "" && val != def.Default {
return val return val
} }
} }