Commit b7314a1687cf67bc8b74f652e44d9b0cb92d4826

Authored by Riyad Preukschas
1 parent 11e28aff

Fix bug in OS detection in check task

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/tasks/gitlab/info.rake
... ... @@ -15,7 +15,7 @@ namespace :gitlab do
15 15 os_name ||= if File.readable?('/etc/SuSE-release')
16 16 File.read('/etc/SuSE-release')
17 17 end
18   - os_name.squish!
  18 + os_name.try(:squish!)
19 19  
20 20 # check if there is an RVM environment
21 21 rvm_version = run_and_match("rvm --version", /[\d\.]+/).try(:to_s)
... ...