close handle on destination after copying boot2docker.iso into vm folder - will otherwise keep hyper-v from starting vm

Signed-off-by: Christian von Stebut <christian@von.stebut.org>
This commit is contained in:
Christian von Stebut 2015-12-23 00:48:18 +01:00
parent acf2d1da4c
commit 1cd6a37343
1 changed files with 2 additions and 0 deletions

View File

@ -55,6 +55,8 @@ func CopyFile(src, dst string) error {
return err
}
defer out.Close()
if _, err = io.Copy(out, in); err != nil {
return err
}