From 08c9b125951453013a0495a14e2947467212b1a5 Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Thu, 26 Dec 2013 18:07:03 +0400 Subject: [PATCH] Fix printing gpg prompts. --- utils/gpg.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/gpg.go b/utils/gpg.go index cb37ce78..9d9674d6 100644 --- a/utils/gpg.go +++ b/utils/gpg.go @@ -29,7 +29,7 @@ func (g *GpgSigner) SetKey(keyRef string) { // DetachedSign signs file with detached signature in ASCII format func (g *GpgSigner) DetachedSign(source string, destination string) error { - fmt.Println("Signing file '%s' with gpg, please enter your passphrase when prompted:\n") + fmt.Printf("Signing file '%s' with gpg, please enter your passphrase when prompted:\n", source) args := []string{"-o", destination, "--armor", "--yes"} if g.keyRef != "" { @@ -42,7 +42,7 @@ func (g *GpgSigner) DetachedSign(source string, destination string) error { // ClearSign clear-signs the file func (g *GpgSigner) ClearSign(source string, destination string) error { - fmt.Println("Clearsigning file '%s' with gpg, please enter your passphrase when prompted:\n") + fmt.Printf("Clearsigning file '%s' with gpg, please enter your passphrase when prompted:\n", source) args := []string{"-o", destination, "--yes"} if g.keyRef != "" { args = append(args, "-u", g.keyRef)