pr-pull, pr-upload: use safe_system to call brew

This commit is contained in:
Jonathan Chang 2020-07-01 23:59:07 +10:00
parent 7360d14f5c
commit 21c903c133
2 changed files with 2 additions and 2 deletions

View File

@ -260,7 +260,7 @@ module Homebrew
upload_args << "--dry-run" if args.dry_run? upload_args << "--dry-run" if args.dry_run?
upload_args << "--root_url=#{args.root_url}" if args.root_url upload_args << "--root_url=#{args.root_url}" if args.root_url
upload_args << "--bintray-org=#{bintray_org}" upload_args << "--bintray-org=#{bintray_org}"
system HOMEBREW_BREW_FILE, *upload_args safe_system HOMEBREW_BREW_FILE, *upload_args
end end
end end
end end

View File

@ -42,7 +42,7 @@ module Homebrew
if args.dry_run? if args.dry_run?
puts "brew #{bottle_args.join " "}" puts "brew #{bottle_args.join " "}"
else else
system HOMEBREW_BREW_FILE, *bottle_args safe_system HOMEBREW_BREW_FILE, *bottle_args
end end
if args.dry_run? if args.dry_run?