Allow env variables in path for rest backend

This commit is contained in:
Andreas Waider 2022-12-29 21:37:48 +01:00
parent 046331748c
commit a37bb48bc8
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ func (b Backend) generateRepo() (string, error) {
case "local":
return GetPathRelativeToConfig(b.Path)
case "rest":
parsed, err := url.Parse(b.Path)
parsed, err := url.Parse(os.ExpandEnv(b.Path))
if err != nil {
return "", err
}