Skip to content
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.

Commit

Permalink
Search Fastfile case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
adellibovi committed Apr 13, 2018
1 parent f0ad849 commit a83b49e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/shared/fastfile_finder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def self.search_path(path:, relative_path: false)
end

# return the Fastfile at path/fastlane/Fastfile if present, otherwise the first one found
fastfile_path = fastfiles.find { |current_path| current_path == "#{path}/fastlane/Fastfile" } || fastfiles.first
fastfile_path = fastfiles.find { |current_path| current_path.downcase == "#{path}/fastlane/fastfile" } || fastfiles.first
if relative_path
fastfile_path = Pathname.new(fastfile_path).relative_path_from(Pathname.new(path))
end
Expand Down
2 changes: 1 addition & 1 deletion app/shared/fastfile_peeker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def fastfile_from_github(repo_full_name: nil, sha_or_branch:)
.select { |resource| resource[:path].end_with?("Fastfile") }
.map { |resource| resource[:path] }

fastfile_path = fastfiles.find { |current_path| current_path == "fastlane/Fastfile" } || fastfiles.first
fastfile_path = fastfiles.find { |current_path| current_path.downcase == "fastlane/fastfile" } || fastfiles.first

contents_map = remote_file_contents_map(
repo_full_name: repo_full_name,
Expand Down

0 comments on commit a83b49e

Please sign in to comment.