Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Helmut Januschka committed Nov 23, 2016
1 parent 6d4ccd9 commit 5a8b0ec
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion fastlane_core/lib/fastlane_core/project.rb
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,11 @@ def build_settings(key: nil, optional: true)
end

begin
result = @build_settings.split("\n").find { |c| c.split(" = ").first.strip == key }
result = @build_settings.split("\n").find do |c|
sp = c.split(" = ")
next if sp.length == 0
sp.first.strip == key
end
return result.split(" = ").last
rescue => ex
return nil if optional # an optional value, we really don't care if something goes wrong
Expand Down

0 comments on commit 5a8b0ec

Please sign in to comment.