Fix bug in OS detection in check task
This commit is contained in:
parent
11e28aff7d
commit
b7314a1687
|
@ -15,7 +15,7 @@ namespace :gitlab do
|
|||
os_name ||= if File.readable?('/etc/SuSE-release')
|
||||
File.read('/etc/SuSE-release')
|
||||
end
|
||||
os_name.squish!
|
||||
os_name.try(:squish!)
|
||||
|
||||
# check if there is an RVM environment
|
||||
rvm_version = run_and_match("rvm --version", /[\d\.]+/).try(:to_s)
|
||||
|
|
Loading…
Reference in a new issue