Skip to content

Commit

Permalink
Merge pull request #15788 from osalbahr/config-os-version
Browse files Browse the repository at this point in the history
config: fallback to ::OS_VERSION
  • Loading branch information
reitermarkus authored Jul 29, 2023
2 parents c346a5c + 77f97f7 commit c531a35
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Library/Homebrew/os/linux.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ def self.os_version
end
elsif (redhat_release = Pathname.new("/etc/redhat-release")).readable?
redhat_release.read.chomp
elsif ::OS_VERSION.present?
::OS_VERSION
else
"Unknown"
end
Expand Down

0 comments on commit c531a35

Please sign in to comment.