fix: expand env vars in flags i.e. of the form ${MY_ENV_VAR}

This commit is contained in:
garethgeorge
2024-10-12 11:49:52 -07:00
parent 4d557a1146
commit d7704cf057
+1 -1
View File
@@ -51,7 +51,7 @@ func NewRepoOrchestrator(config *v1.Config, repoConfig *v1.Repo, resticPath stri
}
for _, f := range repoConfig.GetFlags() {
args, err := shlex.Split(f)
args, err := shlex.Split(ExpandEnv(f))
if err != nil {
return nil, fmt.Errorf("parse flag %q for repo %q: %w", f, repoConfig.Id, err)
}