Update info.rake to be able to run successfully on SuSE.

This commit is contained in:
Mitch Tishmack 2013-01-07 11:07:11 -06:00
parent fb470e8e2a
commit 3e89244e08

View file

@ -12,6 +12,9 @@ namespace :gitlab do
debian_version = File.read('/etc/debian_version')
"Debian #{debian_version}"
end
os_name ||= if File.readable?('/etc/SuSE-release')
File.read('/etc/SuSE-release')
end
os_name.squish!
# check if there is an RVM environment