diff --git a/internal/hook/hook.go b/internal/hook/hook.go index 1796e1c..394dd79 100644 --- a/internal/hook/hook.go +++ b/internal/hook/hook.go @@ -970,7 +970,7 @@ func cat(s string) string { return "" } - return string(data) + return strings.TrimSuffix(string(data), "\n") } // credential provides a template function to retreive secrets using systemd's LoadCredential mechanism