OSDN Git Service

Update info.rake to be able to run successfully on SuSE.
authorMitch Tishmack <mitch.tishmack@gmail.com>
Mon, 7 Jan 2013 17:07:11 +0000 (11:07 -0600)
committerMitch Tishmack <mitch.tishmack@gmail.com>
Mon, 7 Jan 2013 17:21:35 +0000 (11:21 -0600)
lib/tasks/gitlab/info.rake

index 3fbedda..fcd5901 100644 (file)
@@ -12,6 +12,9 @@ namespace :gitlab do
                     debian_version = File.read('/etc/debian_version')
                     "Debian #{debian_version}"
                   end
+      os_name ||= if File.readable?('/etc/SuSE-release')
+                    File.read('/etc/SuSE-release')
+                  end
       os_name.squish!
 
       # check if there is an RVM environment