Skip to content

Commit

Permalink
Update Formula/u/util-linux.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
dduugg committed Nov 3, 2024
1 parent a107702 commit a4929cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Formula/u/util-linux.rb
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def caveats

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

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

0 comments on commit a4929cd

Please sign in to comment.