From 357105ee528cd3b3f15f83eaaa7f01ae5c922f67 Mon Sep 17 00:00:00 2001 From: Douglas Eichelberger Date: Sun, 3 Nov 2024 10:48:14 -0800 Subject: [PATCH] util-linux: fix style --- Formula/u/util-linux.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/u/util-linux.rb b/Formula/u/util-linux.rb index ba4dff0ac85ba1..7fac9630de7776 100644 --- a/Formula/u/util-linux.rb +++ b/Formula/u/util-linux.rb @@ -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