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:
Sybren A. Stüvel 2024-10-05 10:25:02 +02:00
parent 7d8262e630
commit 479f35b658

View File

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