Mage: avoid creating web/static/emptyfile
with wrong permissions
The empty file is created so that Go has something to embed when building Flamenco Manager, even when the static files aren't built yet. On macOS this was done with the wrong permissions, though.
This commit is contained in:
parent
7d8262e630
commit
479f35b658
@ -48,7 +48,7 @@ func cleanWebappStatic() error {
|
||||
// errors. This is done in the 'clean' function so that the Go code can be
|
||||
// built before building the webapp.
|
||||
emptyfile := filepath.Join(webStatic, "emptyfile")
|
||||
if err := os.WriteFile(emptyfile, []byte{}, os.ModePerm); err != nil {
|
||||
if err := os.WriteFile(emptyfile, []byte{}, 0o644); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
|
Loading…
x
Reference in New Issue
Block a user