Commit b7314a16 authored by Riyad Preukschas's avatar Riyad Preukschas

Fix bug in OS detection in check task

parent 11e28aff
...@@ -15,7 +15,7 @@ namespace :gitlab do ...@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment