fix: Trim the cat output

`os.ReadFile` includes a trailing EOL, so we have to remove it to get
the correct value
This commit is contained in:
Tom Hubrecht 2025-01-12 09:35:39 +01:00
parent eb7e8f5ba8
commit 025e442f2e
No known key found for this signature in database

View file

@ -970,7 +970,7 @@ func cat(s string) string {
return "" return ""
} }
return string(data) return strings.TrimSuffix(string(data), "\n")
} }
// credential provides a template function to retreive secrets using systemd's LoadCredential mechanism // credential provides a template function to retreive secrets using systemd's LoadCredential mechanism