lib/sigh/runner.rb in sigh-1.1.4 vs lib/sigh/runner.rb in sigh-1.2.0
- old
+ new
@@ -68,10 +68,14 @@
results = profile_type.find_by_bundle_id(Sigh.config[:app_identifier]).find_all(&:valid?)
# Take the provisioning profile name into account
if Sigh.config[:provisioning_name].to_s.length > 0
filtered = results.select { |p| p.name.strip == Sigh.config[:provisioning_name].strip }
- results = filtered if (filtered || []).count > 0
+ if Sigh.config[:ignore_profiles_with_different_name]
+ results = filtered
+ else
+ results = filtered if (filtered || []).count > 0
+ end
end
return results if Sigh.config[:skip_certificate_verification]
return results.find_all do |a|