fix: check schema in base path
This commit is contained in:
parent
47615c3325
commit
5ac338f2b5
1 changed files with 5 additions and 0 deletions
|
@ -547,5 +547,10 @@ func (i *Installation) BasePath() string {
|
|||
if err != nil {
|
||||
return i.Path
|
||||
}
|
||||
|
||||
if parsed.Scheme != "ftp" && parsed.Scheme != "sftp" {
|
||||
return i.Path
|
||||
}
|
||||
|
||||
return parsed.Path
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue