config: :OS_VERSION (fix style)

This commit is contained in:
Osama Albahrani 2023-07-29 00:58:36 -04:00
parent 8243009d06
commit 77f97f71eb

View File

@ -19,7 +19,7 @@ module OS
end
elsif (redhat_release = Pathname.new("/etc/redhat-release")).readable?
redhat_release.read.chomp
elsif ::OS_VERSION and ! ::OS_VERSION.empty?
elsif ::OS_VERSION.present?
::OS_VERSION
else
"Unknown"