Skip to content

Commit 357105e

Browse files
dduuggBo98
authored andcommitted
util-linux: fix style
1 parent 5cbb4cb commit 357105e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Formula/u/util-linux.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def caveats
138138

139139
flags = ["x", "w", "r"] * 3
140140
perms = flags.each_with_index.reduce("") do |sum, (flag, index)|
141-
sum.insert 0, ((stat.mode & (2 ** index)).zero? ? "-" : flag)
141+
sum.insert 0, (stat.mode.nobits?(2 ** index) ? "-" : flag)
142142
end
143143

144144
out = shell_output("#{bin}/namei -lx /usr").split("\n").last.split

0 commit comments

Comments
 (0)