Fix bug in OS detection in check task

This commit is contained in:
Riyad Preukschas 2013-01-07 19:19:50 +01:00
parent 11e28aff7d
commit b7314a1687

View file

@ -15,7 +15,7 @@ namespace :gitlab do
os_name ||= if File.readable?('/etc/SuSE-release') os_name ||= if File.readable?('/etc/SuSE-release')
File.read('/etc/SuSE-release') File.read('/etc/SuSE-release')
end end
os_name.squish! os_name.try(:squish!)
# check if there is an RVM environment # check if there is an RVM environment
rvm_version = run_and_match("rvm --version", /[\d\.]+/).try(:to_s) rvm_version = run_and_match("rvm --version", /[\d\.]+/).try(:to_s)