Revert "removed redundant ocis config parsing"
This reverts commit c700ccab1f.
This commit is contained in:
@@ -21,6 +21,10 @@ func WebDAVCommand(cfg *config.Config) *cli.Command {
|
||||
command.PrintVersion(cfg.WebDAV),
|
||||
},
|
||||
Before: func(ctx *cli.Context) error {
|
||||
if err := ParseConfig(ctx, cfg); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if cfg.Commons != nil {
|
||||
cfg.WebDAV.Commons = cfg.Commons
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user