1
0
Fork 0
mirror of https://github.com/Luzifer/vault-totp.git synced 2024-12-22 22:01:19 +00:00

Fix: Do not prefix oneshot output with \r

This commit is contained in:
Knut Ahlers 2017-01-03 15:11:37 +01:00
parent 13b379ec1a
commit 12a9a01644
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -86,10 +86,11 @@ func main() {
log.Fatalf("An error ocurred while generating the code: %s", err)
}
fmt.Printf("\r%s", output)
if cfg.OneShot {
fmt.Printf("%s", output)
break
} else {
fmt.Printf("\r%s", output)
}
}