mirror of
https://github.com/Luzifer/vault-totp.git
synced 2024-12-23 06:11:19 +00:00
Fix: Do not prefix oneshot output with \r
This commit is contained in:
parent
13b379ec1a
commit
12a9a01644
1 changed files with 3 additions and 2 deletions
5
main.go
5
main.go
|
@ -86,10 +86,11 @@ func main() {
|
||||||
log.Fatalf("An error ocurred while generating the code: %s", err)
|
log.Fatalf("An error ocurred while generating the code: %s", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Printf("\r%s", output)
|
|
||||||
|
|
||||||
if cfg.OneShot {
|
if cfg.OneShot {
|
||||||
|
fmt.Printf("%s", output)
|
||||||
break
|
break
|
||||||
|
} else {
|
||||||
|
fmt.Printf("\r%s", output)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue