Skip to content

Commit

Permalink
fix: check schema in base path
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilsol committed Jun 22, 2022
1 parent 47615c3 commit 5ac338f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cli/installations.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 5ac338f

Please sign in to comment.