Signed-off-by: Sergey Matveev <stargrave@stargrave.org>
@table @strong
+@item Release 5.3
+@cindex Release 5.3
+@itemize
+@item Fixed minor bug with @code{newclient.sh} that caught
+"Passphrase:" prompt and inserted it into example YAML output.
+Just replaced stdout output to stderr for that prompt.
+@end itemize
+
@item Release 5.2
@cindex Release 5.2
@itemize
"fmt"
"io/ioutil"
"log"
+ "os"
"strings"
"github.com/agl/ed25519"
var err error
var pass string
if path == "" {
- fmt.Print("Passphrase:")
+ os.Stderr.Write([]byte("Passphrase:"))
p, err = terminal.ReadPassword(0)
- fmt.Print("\n")
+ os.Stderr.Write([]byte("\n"))
pass = string(p)
} else {
p, err = ioutil.ReadFile(path)