Skip to content

Commit

Permalink
Fix yaml to flags
Browse files Browse the repository at this point in the history
  • Loading branch information
mstmdev committed Jan 19, 2024
1 parent d958ae8 commit f8df0ba
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions conf/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,7 @@ func (c Config) ToArgs() (args []string, err error) {
k := strings.TrimSpace(kv[0])
v := strings.TrimSpace(kv[1])
v = strings.Trim(v, "'")
if v == "\"\"" {
v = ""
}
v = strings.Trim(v, "\"")
line = "-" + k + "=" + v
args = append(args, line)
}
Expand Down

0 comments on commit f8df0ba

Please sign in to comment.