cask/audit: skip signing audit for shell scripts

This commit is contained in:
Bevan Kay 2025-07-23 11:28:26 +10:00
parent bf3404ef67
commit cd8c0d88fc
No known key found for this signature in database
GPG Key ID: C55CB024B5314B57

View File

@ -512,6 +512,9 @@ module Cask
when Artifact::App
system_command("spctl", args: ["--assess", "--type", "execute", path], print_stderr: false)
when Artifact::Binary
# Shell scripts cannot be signed, so we skip them
next if path.text_executable?
system_command("codesign", args: ["--verify", path], print_stderr: false)
else
add_error "Unknown artifact type: #{artifact.class}", location: url.location