Use FileUtils instead of shelling out to cp
This commit is contained in:
parent
aad52918f4
commit
c06fe57b04
@ -600,8 +600,10 @@ module Homebrew
|
|||||||
raise "Missing Jenkins variables!" unless jenkins and job and id
|
raise "Missing Jenkins variables!" unless jenkins and job and id
|
||||||
|
|
||||||
ARGV << '--verbose'
|
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_NAME"] = "BrewTestBot"
|
||||||
ENV["GIT_COMMITTER_EMAIL"] = "brew-test-bot@googlegroups.com"
|
ENV["GIT_COMMITTER_EMAIL"] = "brew-test-bot@googlegroups.com"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user