Do not Println on get
This commit is contained in:
parent
73b0afcec2
commit
bff81985af
3
main.go
3
main.go
@ -20,6 +20,7 @@ func usage(stdfd *os.File) {
|
||||
_space := strings.Repeat(" ", len(_name))
|
||||
fmt.Fprintf(stdfd, "Usage: %s get\n", _name)
|
||||
fmt.Fprintf(stdfd, " %s set passphrase\n", _space)
|
||||
fmt.Fprintf(stdfd, " %s del\n", _space)
|
||||
fmt.Fprintf(stdfd, " %s help\n", _space)
|
||||
}
|
||||
|
||||
@ -57,7 +58,7 @@ func main() {
|
||||
case "get":
|
||||
cred, _err := getAuthSecret()
|
||||
if _err == nil {
|
||||
fmt.Println(string(cred.CredentialBlob))
|
||||
fmt.Print(string(cred.CredentialBlob))
|
||||
os.Exit(0)
|
||||
}
|
||||
err = _err
|
||||
|
Loading…
Reference in New Issue
Block a user