Skip to content

Commit

Permalink
fix: expand env vars in flags i.e. of the form ${MY_ENV_VAR}
Browse files Browse the repository at this point in the history
  • Loading branch information
garethgeorge committed Oct 12, 2024
1 parent 4d557a1 commit d7704cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/orchestrator/repo/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit d7704cf

Please sign in to comment.