Skip to content
Snippets Groups Projects
Commit 673f08f1 authored by Jack Nagel's avatar Jack Nagel
Browse files

audit: compare file mode directly

parent 1195718d
No related branches found
No related tags found
No related merge requests found
......@@ -95,7 +95,7 @@ class FormulaAuditor
end
def audit_file
unless formula.path.stat.mode.to_s(8) == "100644"
unless formula.path.stat.mode == 0100644
problem "Incorrect file permissions: chmod 644 #{formula.path}"
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment