Browse Source

Fixed incorrect permissions of the schema.json

dependabot/npm_and_yarn/web/prismjs-1.21.0
Max Schmitt 8 years ago
committed by GitHub
parent
commit
930b581d09
  1. 2
      build/schema.go

2
build/schema.go

@ -14,7 +14,7 @@ func main() {
schemaPath := flag.String("path", filepath.Join("build", "schema.json"), "location of the converted schema") schemaPath := flag.String("path", filepath.Join("build", "schema.json"), "location of the converted schema")
flag.Parse() flag.Parse()
schema := generator.Generate(&config.Configuration{}) schema := generator.Generate(&config.Configuration{})
if err := ioutil.WriteFile(*schemaPath, []byte(schema), 644); err != nil { if err := ioutil.WriteFile(*schemaPath, []byte(schema), 755); err != nil {
log.Fatalf("could not write schema: %v", err) log.Fatalf("could not write schema: %v", err)
} }
} }

Loading…
Cancel
Save