We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5720e1 commit cb68ce2Copy full SHA for cb68ce2
components/command/windowsOSCommand.go
@@ -28,7 +28,7 @@ func (fs windowsOSCommand) CreateDirectory(
28
return createDirectory(
29
runner,
30
name,
31
- fmt.Sprintf("New-Item -Path %v -ItemType Directory", remotePath),
+ fmt.Sprintf("New-Item -Force -Path %v -ItemType Directory", remotePath),
32
fmt.Sprintf("if (-not (Test-Path -Path %v/*)) { Remove-Item -Path %v -ErrorAction SilentlyContinue }", remotePath, remotePath),
33
useSudo,
34
opts...)
0 commit comments