Merge pull request #161306 from bevanjkay/ci-fix

`cmd/lib/check` suppress stderr
This commit is contained in:
Bevan Kay
2023-12-01 00:09:21 +11:00
committed by GitHub
+3 -2
View File
@@ -29,9 +29,10 @@ module Check
format_launchjob = lambda { |file|
name = file.basename(".plist").to_s
xml, = system_command! "plutil", args: ["-convert", "xml1", "-o", "-", "--", file], sudo: true
result = system_command "plutil", args: ["-convert", "xml1", "-o", "-", "--", file], sudo: true
return name unless result.success?
label = Plist.parse_xml(xml)["Label"]
label = result.plist["Label"]
(name == label) ? name : "#{name} (#{label})"
}