cask: audit style fixes

Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Sean Molenaar 2023-02-21 19:29:05 +01:00 committed by GitHub
parent c5786ea799
commit 4dcf5f0ad7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -492,8 +492,12 @@ module Cask
tmpdir = Pathname(tmpdir) tmpdir = Pathname(tmpdir)
primary_container.extract_nestedly(to: tmpdir, basename: downloaded_path.basename, verbose: false) primary_container.extract_nestedly(to: tmpdir, basename: downloaded_path.basename, verbose: false)
message = "Signature verification failed:\n#{result.merged_output}\nmacOS on ARM requires applications " \ message = <<~EOS
"to be signed. Please contact the upstream developer to let them know they should " Signature verification failed:
#{result.merged_output}
macOS on ARM requires applications to be signed.
Please contact the upstream developer to let them know they should
EOS
artifacts.each do |artifact| artifacts.each do |artifact|
case artifact case artifact
@ -505,10 +509,10 @@ module Cask
next if result.success? next if result.success?
message += if result.stderr.include?("not signed at all") message = if result.stderr.include?("not signed at all")
"sign their app." "#{message} sign their app."
else else
"fix the signature of their app." "#{message} fix the signature of their app."
end end
add_warning message add_warning message