mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-28 03:49:49 -05:00
audit - check formula permissions
This commit is contained in:
1 parent
b55350e6a0
commit
24c7879b19
1 file changed
+5
@@ -212,6 +212,11 @@ module Homebrew extend self
|
||||
problems += audit_formula_instance f
|
||||
problems += audit_formula_urls f
|
||||
|
||||
perms = File.stat(f.path).mode
|
||||
if perms.to_s(8) != "100644"
|
||||
problems << " * permissions wrong; chmod 644 #{f.path}"
|
||||
end
|
||||
|
||||
text = ""
|
||||
File.open(f.path, "r") { |afile| text = afile.read }
|
||||
|
||||
|
||||
Reference in new issue
Block a user