builder/vmware: find files if they exist [GH-279]

pull/919/head
Mitchell Hashimoto 13 years ago
parent 21f92715c0
commit 1b2d9c4044

@ -6,6 +6,10 @@ IMPROVEMENTS:
for the provisioner to attempt to _start_ the remote process. This allows
the shell provisioner to work properly with reboots. [GH-260]
BUG FIXES:
* builder/vmware: Fix issue with finding driver files. [GH-279]
## 0.3.0 (August 12, 2013)
BACKWARDS INCOMPATIBILITIES:

@ -141,7 +141,7 @@ func findFile(file string, paths []string) string {
path = normalizePath(path)
log.Printf("Searching for file '%s'", path)
if _, err := os.Stat(path); err != nil {
if _, err := os.Stat(path); err == nil {
log.Printf("Found file '%s'", path)
return path
}

Loading…
Cancel
Save