fastlane/lib/fastlane/actions/copy_artifacts.rb in fastlane-2.132.0.beta.20190929200020 vs fastlane/lib/fastlane/actions/copy_artifacts.rb in fastlane-2.132.0.beta.20190930200026
- old
+ new
@@ -14,10 +14,10 @@
artifacts_to_search = [params[:artifacts]].flatten
# If any of the paths include "*", we assume that we are referring to the Unix entries
# e.g /tmp/fastlane/* refers to all the files in /tmp/fastlane
# We use Dir.glob to expand all those paths, this would create an array of arrays though, so flatten
- artifacts = artifacts_to_search.map { |f| f.include?("*") ? Dir.glob(f) : f }.flatten
+ artifacts = artifacts_to_search.flat_map { |f| f.include?("*") ? Dir.glob(f) : f }
UI.verbose("Copying artifacts #{artifacts.join(', ')} to #{target_path}")
UI.verbose(params[:keep_original] ? "Keeping original files" : "Not keeping original files")
if params[:fail_on_missing]