Update info.rake to be able to run successfully on SuSE.
This commit is contained in:
parent
fb470e8e2a
commit
3e89244e08
|
@ -12,6 +12,9 @@ namespace :gitlab do
|
||||||
debian_version = File.read('/etc/debian_version')
|
debian_version = File.read('/etc/debian_version')
|
||||||
"Debian #{debian_version}"
|
"Debian #{debian_version}"
|
||||||
end
|
end
|
||||||
|
os_name ||= if File.readable?('/etc/SuSE-release')
|
||||||
|
File.read('/etc/SuSE-release')
|
||||||
|
end
|
||||||
os_name.squish!
|
os_name.squish!
|
||||||
|
|
||||||
# check if there is an RVM environment
|
# check if there is an RVM environment
|
||||||
|
|
Loading…
Reference in a new issue