From 67a9c7fb92a74e30ff614c3852b0270e01faddc9 Mon Sep 17 00:00:00 2001 From: Matthew Hooker Date: Thu, 26 Apr 2018 12:38:28 -0700 Subject: [PATCH] we never expect remote cache to be a directory. --- builder/vmware/iso/driver_esx5.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/vmware/iso/driver_esx5.go b/builder/vmware/iso/driver_esx5.go index d57134ccf..c31d8da95 100644 --- a/builder/vmware/iso/driver_esx5.go +++ b/builder/vmware/iso/driver_esx5.go @@ -141,7 +141,7 @@ func (d *ESX5Driver) UploadISO(localPath string, checksum string, checksumType s func (d *ESX5Driver) RemoveCache(localPath string) error { finalPath := d.cachePath(localPath) log.Printf("Removing remote cache path %s (local %s)", finalPath, localPath) - return d.sh("rm", "-rf", finalPath) + return d.sh("rm", "-f", finalPath) } func (d *ESX5Driver) ToolsIsoPath(string) string {