This commit is contained in:
Guo Lei 2023-01-28 22:55:27 +08:00 committed by GitHub
parent e98739598a
commit b63d1e9c6b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -111,7 +111,7 @@ func (c *commandS3Configure) Do(args []string, commandEnv *CommandEnv, writer io
for _, i := range exists {
s3cfg.Identities[idx].Credentials = append(
s3cfg.Identities[idx].Credentials[:i],
s3cfg.Identities[idx].Credentials[:i+1]...,
s3cfg.Identities[idx].Credentials[i+1:]...,
)
}