audit: use formula.name rather than formula.path
Signed-off-by: Rui Chen <rui@chenrui.dev>
This commit is contained in:
parent
ba8e40f249
commit
c2a3bffbcd
@ -478,10 +478,10 @@ module Homebrew
|
||||
if args.no_audit?
|
||||
ohai "Skipping `brew audit`"
|
||||
elsif audit_args.present?
|
||||
system HOMEBREW_BREW_FILE, "audit", *audit_args, formula.path
|
||||
system HOMEBREW_BREW_FILE, "audit", *audit_args, formula.name
|
||||
failed_audit = !$CHILD_STATUS.success?
|
||||
else
|
||||
system HOMEBREW_BREW_FILE, "audit", formula.path
|
||||
system HOMEBREW_BREW_FILE, "audit", formula.name
|
||||
failed_audit = !$CHILD_STATUS.success?
|
||||
end
|
||||
return unless failed_audit
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user