Skip to content

Commit 24a2aad

Browse files
authored
Merge pull request #20292 from Homebrew/codesign-audit-shell-scripts
cask/audit: skip signing audit for shell scripts
2 parents bf3404e + cd8c0d8 commit 24a2aad

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Library/Homebrew/cask/audit.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,9 @@ def audit_signing
512512
when Artifact::App
513513
system_command("spctl", args: ["--assess", "--type", "execute", path], print_stderr: false)
514514
when Artifact::Binary
515+
# Shell scripts cannot be signed, so we skip them
516+
next if path.text_executable?
517+
515518
system_command("codesign", args: ["--verify", path], print_stderr: false)
516519
else
517520
add_error "Unknown artifact type: #{artifact.class}", location: url.location

0 commit comments

Comments
 (0)