mirror of
https://gogs.blitter.com/RLabs/xs
synced 2024-08-14 10:26:42 +00:00
Suppress Gimme Cookie prompt when in gopt (-g) authtoken create mode
This commit is contained in:
parent
b2e43f4bad
commit
0913311351
1 changed files with 7 additions and 3 deletions
10
xs/xs.go
10
xs/xs.go
|
@ -1007,10 +1007,14 @@ func main() { //nolint: funlen, gocyclo
|
|||
})
|
||||
|
||||
if authCookie == "" {
|
||||
// No auth token, prompt for password
|
||||
fmt.Printf("Gimme cookie:")
|
||||
if !gopt {
|
||||
// No auth token, prompt for password
|
||||
fmt.Printf("Gimme cookie:")
|
||||
}
|
||||
ab, e := xs.ReadPassword(os.Stdin.Fd())
|
||||
fmt.Printf("\r\n")
|
||||
if !gopt {
|
||||
fmt.Printf("\r\n")
|
||||
}
|
||||
if e != nil {
|
||||
panic(e)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue