From cd8c0d88fc8f27bda6be8b97bbc11dc98893dda4 Mon Sep 17 00:00:00 2001 From: Bevan Kay Date: Wed, 23 Jul 2025 11:28:26 +1000 Subject: [PATCH] cask/audit: skip signing audit for shell scripts --- Library/Homebrew/cask/audit.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Library/Homebrew/cask/audit.rb b/Library/Homebrew/cask/audit.rb index 03e7e47c0a..28d7352da1 100644 --- a/Library/Homebrew/cask/audit.rb +++ b/Library/Homebrew/cask/audit.rb @@ -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