Skip to content

Commit 4185079

Browse files
committed
fix crane validation:
Signed-off-by: Austin Abro <[email protected]>
1 parent 098045d commit 4185079

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/crane/cmd/auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ func login(opts loginOptions) error {
249249
opts.password = strings.TrimSuffix(string(contents), "\n")
250250
opts.password = strings.TrimSuffix(opts.password, "\r")
251251
}
252-
if opts.user == "" && opts.password == "" {
252+
if opts.user == "" || opts.password == "" {
253253
return errors.New("username and password required")
254254
}
255255
cf, err := config.Load(os.Getenv("DOCKER_CONFIG"))

0 commit comments

Comments
 (0)