force file mode on write (and update deps)
This commit is contained in:
@ -66,7 +66,8 @@ func Files(cfg *config.Config, filters ...string) (err error) {
|
||||
)
|
||||
|
||||
if err != nil {
|
||||
return
|
||||
log.Print("failed to write file ", file.Path, ": ", err)
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
||||
@ -85,5 +86,9 @@ func writeFile(path string, content []byte, fileMode, dirMode os.FileMode, cfg *
|
||||
err = fmt.Errorf("failed to write %s: %v", path, err)
|
||||
}
|
||||
|
||||
if chmodErr := os.Chmod(path, fileMode); chmodErr != nil {
|
||||
log.Print("- failed chmod: ", chmodErr)
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user