Commit 0a1603992490d47b3fe676a02dedb5417603a1f2

Authored by Riyad Preukschas
2 parents 9be4c555 3e89244e

Merge pull request #2504 from mitchty/sles_changes

Update info.rake to be able to run successfully on SuSE.
Showing 1 changed file with 3 additions and 0 deletions   Show diff stats
lib/tasks/gitlab/info.rake
... ... @@ -12,6 +12,9 @@ namespace :gitlab do
12 12 debian_version = File.read('/etc/debian_version')
13 13 "Debian #{debian_version}"
14 14 end
  15 + os_name ||= if File.readable?('/etc/SuSE-release')
  16 + File.read('/etc/SuSE-release')
  17 + end
15 18 os_name.squish!
16 19  
17 20 # check if there is an RVM environment
... ...