Fix typos and bugs

This commit is contained in:
Henrique Dias
2017-07-25 12:25:15 +01:00
parent 1f8e0f3376
commit f61c324496
3 changed files with 5 additions and 2 deletions

View File

@@ -467,6 +467,9 @@ func copyFile(source string, dest string) (err error) {
sourceinfo, err := os.Stat(source)
if err != nil {
err = os.Chmod(dest, sourceinfo.Mode())
if err != nil {
return err
}
}
}