aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--template.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/template.go b/template.go
index cb6dc2e..cb815a3 100644
--- a/template.go
+++ b/template.go
@@ -5,6 +5,7 @@ import (
"os"
"os/exec"
"path/filepath"
+ "strings"
"text/template"
"github.com/BurntSushi/toml"
@@ -32,7 +33,7 @@ func lookupPassword(name string) (string, error) {
if err != nil {
return "", err
}
- return string(line), nil
+ return strings.TrimRight(string(line), "\n"), nil
}
func getTemplateData() (*TemplateData, error) {