mirror of
https://github.com/garethgeorge/backrest.git
synced 2026-08-25 10:26:35 +00:00
fix: expand env vars in flags i.e. of the form ${MY_ENV_VAR}
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user