From bf7a4b33632136e965ddc7224edf57143a5b6d24 Mon Sep 17 00:00:00 2001 From: Dave Sanderson Date: Wed, 13 Dec 2017 10:49:38 -0700 Subject: [PATCH] remove erroraction on win removedir --- provisioner/guest_commands.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/provisioner/guest_commands.go b/provisioner/guest_commands.go index 47edb1768..3a361a208 100644 --- a/provisioner/guest_commands.go +++ b/provisioner/guest_commands.go @@ -28,7 +28,7 @@ var guestOSTypeCommands = map[string]guestOSTypeCommand{ WindowsOSType: { chmod: "echo 'skipping chmod %s %s'", // no-op mkdir: "powershell.exe -Command \"New-Item -ItemType directory -Force -ErrorAction SilentlyContinue -Path %s\"", - removeDir: "powershell.exe -Command \"rm %s -recurse -force -ErrorAction SilentlyContinue\"", + removeDir: "powershell.exe -Command \"rm %s -recurse -force\"", statPath: "powershell.exe -Command { if (test-path %s) { exit 0 } else { exit 1 } }", mv: "powershell.exe -Command \"mv %s %s\"", },