We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5aae824 + 8cb211a commit de8151cCopy full SHA for de8151c
restic/cli/restic.go
@@ -57,8 +57,8 @@ type clientCert struct {
57
func New(ctx context.Context, logger logr.Logger, statsHandler StatsHandler) *Restic {
58
globalFlags := Flags{}
59
60
- options := strings.Split(cfg.Config.ResticOptions, ",")
61
- if len(options) > 0 {
+ if cfg.Config.ResticOptions != "" {
+ options := strings.Split(cfg.Config.ResticOptions, ",")
62
logger.Info("using the following restic options", "options", options)
63
globalFlags.AddFlag("--option", options...)
64
}
0 commit comments