Skip to content

Commit 55dfc2f

Browse files
committed
Move instead of copy [skip ci]
1 parent 27c9f4e commit 55dfc2f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/or-tools/vendor.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,14 +132,14 @@ def download_file(url, download_path, redirects = 0)
132132
raise "License not found" unless license_files.any?
133133
license_files.each do |file|
134134
FileUtils.mkdir_p(File.join(path, File.dirname(file)))
135-
FileUtils.cp(File.join(extract_path, file), File.join(path, file))
135+
FileUtils.mv(File.join(extract_path, file), File.join(path, file))
136136
end
137137

138138
# include
139-
FileUtils.cp_r(File.join(extract_path, "include"), File.join(path, "include"))
139+
FileUtils.mv(File.join(extract_path, "include"), File.join(path, "include"))
140140

141141
# shared library
142-
FileUtils.cp_r(File.join(extract_path, "lib"), File.join(path, "lib"))
142+
FileUtils.mv(File.join(extract_path, "lib"), File.join(path, "lib"))
143143
end
144144

145145
# export

0 commit comments

Comments
 (0)