diff --git a/lib/tasks/gitlab/info.rake b/lib/tasks/gitlab/info.rake index fcd5901..fd3e83e 100644 --- a/lib/tasks/gitlab/info.rake +++ b/lib/tasks/gitlab/info.rake @@ -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) -- libgit2 0.21.2