1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-09-15 18:57:01 +00:00

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 d6d05d4e56
commit 9f9d26fb61

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 {