fastlane/lib/fastlane/actions/copy_artifacts.rb in fastlane-2.26.1 vs fastlane/lib/fastlane/actions/copy_artifacts.rb in fastlane-2.27.0.beta.20170407010056

- old
+ new

@@ -23,10 +23,10 @@ if params[:fail_on_missing] missing = artifacts.reject { |a| File.exist?(a) } UI.user_error! "Not all files were present in copy artifacts. Missing #{missing.join(', ')}" unless missing.empty? else - # If we don't fail on non-existent files, don't try to copy non-existent files + # If we don't fail on non-existant files, don't try to copy non-existant files artifacts.select! { |artifact| File.exist?(artifact) } end if params[:keep_original] FileUtils.cp_r(artifacts, target_path, remove_destination: true)