diff --git a/xs/xs.go b/xs/xs.go index 3f8823f..b30ea05 100755 --- a/xs/xs.go +++ b/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) }