mirror of
https://github.com/cupcakearmy/autorestic.git
synced 2024-12-22 16:26:25 +00:00
Allow env variables in path for rest backend (#280)
This commit is contained in:
parent
37d55c691f
commit
112a69d743
@ -38,7 +38,7 @@ func (b Backend) generateRepo() (string, error) {
|
|||||||
case "local":
|
case "local":
|
||||||
return GetPathRelativeToConfig(b.Path)
|
return GetPathRelativeToConfig(b.Path)
|
||||||
case "rest":
|
case "rest":
|
||||||
parsed, err := url.Parse(b.Path)
|
parsed, err := url.Parse(os.ExpandEnv(b.Path))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user