fix: check schema in base path

This commit is contained in:
Vilsol 2022-06-23 02:05:35 +03:00
parent 47615c3325
commit 5ac338f2b5

View file

@ -547,5 +547,10 @@ func (i *Installation) BasePath() string {
if err != nil { if err != nil {
return i.Path return i.Path
} }
if parsed.Scheme != "ftp" && parsed.Scheme != "sftp" {
return i.Path
}
return parsed.Path return parsed.Path
} }