Skip to content

Commit

Permalink
Fix mb with-versioning (#4223)
Browse files Browse the repository at this point in the history
`mc mb --with-versioning` no longer works after f70b7e5 (no PR)

Use long param name.
  • Loading branch information
klauspost committed Aug 26, 2022
1 parent 85a50db commit 55c5b96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/mb-main.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func mainMakeBucket(cliCtx *cli.Context) error {
continue
}

if cliCtx.Bool("s") {
if cliCtx.Bool("with-versioning") {
fatalIf(clnt.SetVersion(ctx, "enable", []string{}, false), "Unable to enable versioning")
}

Expand Down

0 comments on commit 55c5b96

Please sign in to comment.