audit: use full_name for cask audit

Signed-off-by: Rui Chen <rui@chenrui.dev>
This commit is contained in:
Rui Chen 2022-12-28 16:29:33 -05:00
parent 59cff340ca
commit c9274ea34f
No known key found for this signature in database
GPG Key ID: 6577287BDCA70840

View File

@ -216,10 +216,10 @@ module Homebrew
if args.no_audit?
ohai "Skipping `brew audit`"
elsif args.online?
system HOMEBREW_BREW_FILE, "audit", "--cask", "--online", cask.sourcefile_path
system HOMEBREW_BREW_FILE, "audit", "--cask", "--online", cask.full_name
failed_audit = !$CHILD_STATUS.success?
else
system HOMEBREW_BREW_FILE, "audit", "--cask", cask.sourcefile_path
system HOMEBREW_BREW_FILE, "audit", "--cask", cask.full_name
failed_audit = !$CHILD_STATUS.success?
end
return unless failed_audit