Permalink
Browse files

Merge pull request #18 from Jimdo/master

Fix for issue #14 in bjeanes/ghost
  • Loading branch information...
2 parents 6d5c5f1 + b64a33e commit 3b6349427afc58c2db010bc11cec428735af867b @bjeanes committed Apr 6, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/ghost.rb
View
@@ -2,7 +2,12 @@
case RUBY_PLATFORM
when /darwin/
- require 'ghost/mac-host'
+ productVersion = `/usr/bin/sw_vers -productVersion`.strip
+ if productVersion =~ /^10\.7\.[2-9]{1}$/
+ require 'ghost/linux-host'
+ else
+ require 'ghost/mac-host'
+ end
when /linux/
require 'ghost/linux-host'
end

0 comments on commit 3b63494

Please sign in to comment.