Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #31 from wulftone/master

LinuxMint 11 support and "no distro" detection
  • Loading branch information...
commit 0e22abd94d08a22d483f38448b94d19f0132ae65 2 parents 8a4ad8b + fa8e3e2
@jhs jhs authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 tasks/lib/distros.rb
View
4 tasks/lib/distros.rb
@@ -21,6 +21,8 @@ def detect_distro
info = Hash[ *File.new('/etc/lsb-release').lines.map{ |x| x.split('=').map { |y| y.chomp } }.flatten ]
if info['DISTRIB_ID'] == 'Ubuntu'
return [:ubuntu, info['DISTRIB_RELEASE']]
+ elsif info['DISTRIB_ID'] == 'LinuxMint'
+ return [:ubuntu, info['DISTRIB_RELEASE']]
end
end
@@ -76,5 +78,5 @@ def detect_distro
end
end
- nil
+ raise StandardError, 'could not find distribution, maybe your OS isn\'t supported'
end
Please sign in to comment.
Something went wrong with that request. Please try again.