We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5f767cb + 3e31275 commit 8b40675Copy full SHA for 8b40675
pkg/cidata/cidata.go
@@ -489,14 +489,7 @@ func getBootCmds(p []limatype.Provision) []BootCmds {
489
var bootCmds []BootCmds
490
for _, f := range p {
491
if f.Mode == limatype.ProvisionModeBoot {
492
- lines := []string{}
493
- for line := range strings.SplitSeq(*f.Script, "\n") {
494
- if line == "" {
495
- continue
496
- }
497
- lines = append(lines, strings.TrimSpace(line))
498
499
- bootCmds = append(bootCmds, BootCmds{Lines: lines})
+ bootCmds = append(bootCmds, BootCmds{Lines: strings.Split(*f.Script, "\n")})
500
}
501
502
return bootCmds
0 commit comments