Skip to content

Commit 8a764b2

Browse files
committed
fix: fix xargs
1 parent 733b68e commit 8a764b2

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

  • pkg/devspace/pipeline/engine/basichandler/commands

pkg/devspace/pipeline/engine/basichandler/commands/xargs.go

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,17 @@ func XArgs(ctx context.Context, args []string, handler types.ExecHandler) error
3434
return err
3535
}
3636

37-
addArgs := strings.Split(string(out), options.Delimiter)
37+
addArgs := strings.Split(string(out), "\n")
3838
for _, addArg := range addArgs {
39-
addArg = strings.TrimSpace(addArg)
40-
if addArg == "" {
41-
continue
42-
}
39+
splitted := strings.Split(addArg, options.Delimiter)
40+
for _, a := range splitted {
41+
a = strings.TrimSpace(a)
42+
if a == "" {
43+
continue
44+
}
4345

44-
args = append(args, addArg)
46+
args = append(args, a)
47+
}
4548
}
4649
return handler.ExecHandler(ctx, args)
4750
}

0 commit comments

Comments
 (0)