Skip to content

Commit

Permalink
Allow env variables in path for rest backend (cupcakearmy#280)
Browse files Browse the repository at this point in the history
  • Loading branch information
a-waider committed Mar 2, 2023
1 parent 37d55c6 commit 112a69d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 112a69d

Please sign in to comment.