Commit d107591c authored by Jakob Jarmar's avatar Jakob Jarmar

Fix support for UNC paths in Powershell executor

parent 17290488
Pipeline #36329691 passed with stages
in 27 minutes and 40 seconds
......@@ -5,7 +5,6 @@ import (
"bytes"
"fmt"
"io"
"path"
"path/filepath"
"strings"
......@@ -89,7 +88,7 @@ func (b *PsWriter) buildCommand(command string, arguments ...string) string {
}
func (b *PsWriter) TmpFile(name string) string {
filePath := b.Absolute(path.Join(b.TemporaryPath, name))
filePath := b.Absolute(filepath.Join(b.TemporaryPath, name))
return helpers.ToBackslash(filePath)
}
......@@ -153,7 +152,7 @@ func (b *PsWriter) MkDir(path string) {
}
func (b *PsWriter) MkTmpDir(name string) string {
path := helpers.ToBackslash(path.Join(b.TemporaryPath, name))
path := helpers.ToBackslash(filepath.Join(b.TemporaryPath, name))
b.MkDir(path)
return path
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment