Replace backslash in GetActPath() for Windows (#1777)

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
benbaker76 2023-05-03 12:12:36 -07:00 committed by GitHub
parent 8913375af8
commit f84a566ded
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -362,7 +362,11 @@ func (e *HostEnvironment) ToContainerPath(path string) string {
}
func (e *HostEnvironment) GetActPath() string {
return e.ActPath
actPath := e.ActPath
if runtime.GOOS == "windows" {
actPath = strings.ReplaceAll(actPath, "\\", "/")
}
return actPath
}
func (*HostEnvironment) GetPathVariableName() string {