Skip to content

Commit b7314a1

Browse files
committed
Fix bug in OS detection in check task
1 parent 11e28af commit b7314a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/tasks/gitlab/info.rake

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace :gitlab do
1515
os_name ||= if File.readable?('/etc/SuSE-release')
1616
File.read('/etc/SuSE-release')
1717
end
18-
os_name.squish!
18+
os_name.try(:squish!)
1919

2020
# check if there is an RVM environment
2121
rvm_version = run_and_match("rvm --version", /[\d\.]+/).try(:to_s)

0 commit comments

Comments
 (0)