Skip to content

Commit 2e36974

Browse files
author
JojiiOfficial
committed
fix not able to setup
1 parent d0af8e3 commit 2e36974

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commands/Config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ func ConfigView(cData *CommandData, sessionBase64 bool) {
118118

119119
// SetupClient sets up client config
120120
func SetupClient(cData *CommandData, host, configFile string, ignoreCert, serverOnly, register, noLogin bool, token, username string) {
121-
if len(token)*len(username) == 0 {
121+
if len(token)*len(username) == 0 && len(token)+len(username) > 0 {
122122
fmt.Println("Either --user or --token is missing")
123123
return
124124
}

0 commit comments

Comments
 (0)