summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiyad Preukschas <riyad@informatik.uni-bremen.de>2013-01-07 19:19:50 +0100
committerRiyad Preukschas <riyad@informatik.uni-bremen.de>2013-01-07 21:20:20 +0100
commitb7314a1687cf67bc8b74f652e44d9b0cb92d4826 (patch)
tree3057c8693d15d7730f0cc105bf8c423bab091e23
parent11e28aff7db8498dc08165717b476a7b0a34533f (diff)
downloadgitlab-ce-b7314a1687cf67bc8b74f652e44d9b0cb92d4826.tar.gz
Fix bug in OS detection in check task
-rw-r--r--lib/tasks/gitlab/info.rake2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tasks/gitlab/info.rake b/lib/tasks/gitlab/info.rake
index fcd590134d6..fd3e83e8338 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)