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

This commit is contained in:
Mitchell Hashimoto 2013-08-12 16:13:06 -07:00
parent 21f92715c0
commit 1b2d9c4044
2 changed files with 5 additions and 1 deletions

View File

@ -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:

View File

@ -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
}