cask/audit: skip signing audit without gktool
replace `odebug` with `opoo` Co-authored-by: Carlo Cabrera <github@carlo.cab> cask/audit: fix style
This commit is contained in:
parent
fec86a9488
commit
b1a74330d7
@ -510,11 +510,9 @@ module Cask
|
|||||||
when Artifact::Pkg
|
when Artifact::Pkg
|
||||||
system_command("spctl", args: ["--assess", "--type", "install", path], print_stderr: false)
|
system_command("spctl", args: ["--assess", "--type", "install", path], print_stderr: false)
|
||||||
when Artifact::App
|
when Artifact::App
|
||||||
if which("gktool")
|
next opoo "gktool not found, skipping app signing audit" unless which("gktool")
|
||||||
|
|
||||||
system_command("gktool", args: ["scan", path], print_stderr: false)
|
system_command("gktool", args: ["scan", path], print_stderr: false)
|
||||||
else
|
|
||||||
system_command("spctl", args: ["--assess", "--type", "execute", path], print_stderr: false)
|
|
||||||
end
|
|
||||||
when Artifact::Binary
|
when Artifact::Binary
|
||||||
# Shell scripts cannot be signed, so we skip them
|
# Shell scripts cannot be signed, so we skip them
|
||||||
next if path.text_executable?
|
next if path.text_executable?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user