cmd/lib/check suppress stderr

This commit is contained in:
Bevan Kay
2023-11-30 12:34:25 +11:00
parent 16857d96a7
commit 93aab4d1f4
+3 -1
View File
@@ -29,7 +29,9 @@ module Check
format_launchjob = lambda { |file|
name = file.basename(".plist").to_s
xml, = system_command! "plutil", args: ["-convert", "xml1", "-o", "-", "--", file], sudo: true
xml, = system_command! "plutil", args: ["-convert", "xml1", "-o", "-", "--", file],
print_stderr: false,
sudo: true
label = Plist.parse_xml(xml)["Label"]
(name == label) ? name : "#{name} (#{label})"