mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-19 14:31:40 -04:00
* [COMPLIANCE] Add/Update Copyright Headers * make generate update * make generate --------- Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com> Co-authored-by: sanya <[email protected]> Co-authored-by: Sanya <[email protected]>
19 lines
435 B
Go
19 lines
435 B
Go
// Copyright IBM Corp. 2024, 2026
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
package command
|
|
|
|
import "strings"
|
|
|
|
func init() {
|
|
spaghettiCarbonara = fixWindowsLineEndings(spaghettiCarbonara)
|
|
lasagna = fixWindowsLineEndings(lasagna)
|
|
tiramisu = fixWindowsLineEndings(tiramisu)
|
|
one = fixWindowsLineEndings(one)
|
|
two = fixWindowsLineEndings(two)
|
|
}
|
|
|
|
func fixWindowsLineEndings(s string) string {
|
|
return strings.ReplaceAll(s, "\n", " \r\n")
|
|
}
|