We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11e28af commit b7314a1Copy full SHA for b7314a1
lib/tasks/gitlab/info.rake
@@ -15,7 +15,7 @@ namespace :gitlab do
15
os_name ||= if File.readable?('/etc/SuSE-release')
16
File.read('/etc/SuSE-release')
17
end
18
- os_name.squish!
+ os_name.try(:squish!)
19
20
# check if there is an RVM environment
21
rvm_version = run_and_match("rvm --version", /[\d\.]+/).try(:to_s)
0 commit comments