Commit 40326698 authored by Jakob Jarmar's avatar Jakob Jarmar

Fix support for UNC paths in Powershell executor

parent 17290488
Pipeline #36326220 passed with stages
in 26 minutes
...@@ -5,7 +5,6 @@ import ( ...@@ -5,7 +5,6 @@ import (
"bytes" "bytes"
"fmt" "fmt"
"io" "io"
"path"
"path/filepath" "path/filepath"
"strings" "strings"
...@@ -89,7 +88,7 @@ func (b *PsWriter) buildCommand(command string, arguments ...string) string { ...@@ -89,7 +88,7 @@ func (b *PsWriter) buildCommand(command string, arguments ...string) string {
} }
func (b *PsWriter) TmpFile(name 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) return helpers.ToBackslash(filePath)
} }
...@@ -153,7 +152,7 @@ func (b *PsWriter) MkDir(path string) { ...@@ -153,7 +152,7 @@ func (b *PsWriter) MkDir(path string) {
} }
func (b *PsWriter) MkTmpDir(name string) 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) b.MkDir(path)
return 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