Skip to content

Commit

Permalink
fix: Fix registry log in error checking (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoshkin authored Jan 26, 2022
1 parent 87a9fa8 commit 6fb7a47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skopeo/skopeo.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ func (r *Runner) AttemptToLoginToRegistry(ctx context.Context, registryName stri
if err == nil {
return getLoginStdout, getLoginStderr, nil
}
if err != nil && !strings.Contains(string(getLoginStdout), fmt.Sprintf("not logged into %s", registryName)) {
if err != nil && !strings.Contains(string(getLoginStderr), fmt.Sprintf("not logged into %s", registryName)) {
return getLoginStdout, getLoginStderr, fmt.Errorf("failed to check if already logged in to %s: %w", registryName, err)
}

Expand Down

0 comments on commit 6fb7a47

Please sign in to comment.