Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Jan 11, 2024
1 parent 690c69c commit a6a48b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/util/format.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ func FormatCmd(args ...string) string {
formatted := make([]string, 0, len(args))
for _, arg := range args {
switch {
case strings.ContainsAny(arg, `"' `+"\n\r\t"):
case arg == "",
strings.ContainsAny(arg, `"' `+"\n\r\t"):
formatted = append(formatted, replacer.Replace(fmt.Sprintf("%#v", arg)))
default:
formatted = append(formatted, arg)
Expand Down

0 comments on commit a6a48b8

Please sign in to comment.