Skip to content

Commit

Permalink
sync/shared-config: move brew's ruby version to Library/Homebrew.
Browse files Browse the repository at this point in the history
This will avoid issues with `#!/usr/bin/env ruby` shebangs in Homebrew's
prefix.
  • Loading branch information
MikeMcQuaid committed Jun 6, 2024
1 parent 3635f65 commit a3206a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/actions/sync/shared-config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ def git(*args)
when ruby_version
next if custom_ruby_version_repos.include?(repository_name)

if repository_name == "brew"

Check failure on line 73 in .github/actions/sync/shared-config.rb

View workflow job for this annotation

GitHub Actions / sync-shared-config (Homebrew/.github)

Style/IfUnlessModifier: Favor modifier `if` usage when having a single-line body. Another good alternative is the usage of control flow `&&`/`||`.
target_path = target_directory_path/"Library/Homebrew/#{ruby_version}"
end

target_path.write("#{homebrew_ruby_version}\n")
when rubocop_yml
next if custom_rubocop_repos.include?(repository_name)
Expand Down

0 comments on commit a3206a7

Please sign in to comment.