From 83deefd6456f850c7c312391c5e8e48b82944bc6 Mon Sep 17 00:00:00 2001 From: Marcus Holl Date: Mon, 21 Sep 2020 09:14:48 +0200 Subject: [PATCH] Fix: Avoid newline at end of timestamp in mtaBuild step (#2044) --- cmd/mtaBuild.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/mtaBuild.go b/cmd/mtaBuild.go index d5bc10148..e9dcc3edb 100644 --- a/cmd/mtaBuild.go +++ b/cmd/mtaBuild.go @@ -308,7 +308,7 @@ func setTimeStamp(mtaYamlFile string, p piperutils.FileUtils) error { func getTimestamp() string { t := time.Now() - return fmt.Sprintf("%d%02d%02d%02d%02d%02d\n", t.Year(), t.Month(), t.Day(), t.Hour(), t.Minute(), t.Second()) + return fmt.Sprintf("%d%02d%02d%02d%02d%02d", t.Year(), t.Month(), t.Day(), t.Hour(), t.Minute(), t.Second()) } func createMtaYamlFile(mtaYamlFile, applicationName string, p piperutils.FileUtils) error {