Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Commit

Permalink
Fix npm's package.json permissions (#2005)
Browse files Browse the repository at this point in the history
Changed created file permissions from 644 (`-w----r--`) to 0644 (`rw-r--r--`)
  • Loading branch information
disconnect3d authored Jun 9, 2020
1 parent 1c74ae6 commit 7827df3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buffalo/cmd/fix/npm.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func AddPackageJSONScripts(r *Runner) error {
return fmt.Errorf("could not rewrite package.json: %s", err.Error())
}

ioutil.WriteFile("package.json", b, 644)
ioutil.WriteFile("package.json", b, 0644)
} else {
fmt.Println("~~~ package.json doesn't need to be patched, skipping. ~~~")
}
Expand Down

0 comments on commit 7827df3

Please sign in to comment.