Do not downcase OS name

This commit is contained in:
Josh Holtrop 2026-04-17 22:30:10 -04:00
parent 34e984d563
commit ea932dd641

View File

@ -16,7 +16,7 @@ def read_os_name
return nil unless File.exist?("/etc/os-release") return nil unless File.exist?("/etc/os-release")
File.readlines("/etc/os-release").each do |line| File.readlines("/etc/os-release").each do |line|
if line =~ /^PRETTY_NAME="(.+)"$/ if line =~ /^PRETTY_NAME="(.+)"$/
return $1.strip.delete('"').downcase return $1.strip.delete('"')
end end
end end
nil nil