Skip to content
Snippets Groups Projects
Commit c06fe57b authored by Jack Nagel's avatar Jack Nagel
Browse files

Use FileUtils instead of shelling out to cp

parent aad52918
No related branches found
No related tags found
No related merge requests found
......@@ -600,8 +600,10 @@ module Homebrew
raise "Missing Jenkins variables!" unless jenkins and job and id
ARGV << '--verbose'
cp_args = Dir["#{jenkins}/jobs/#{job}/configurations/axis-version/*/builds/#{id}/archive/*.bottle*.*"] + ["."]
return unless system "cp", *cp_args
bottles = Dir["#{jenkins}/jobs/#{job}/configurations/axis-version/*/builds/#{id}/archive/*.bottle*.*"]
return if bottles.empty?
FileUtils.cp bottles, Dir.pwd, :verbose => true
ENV["GIT_COMMITTER_NAME"] = "BrewTestBot"
ENV["GIT_COMMITTER_EMAIL"] = "brew-test-bot@googlegroups.com"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment