From f4a4b0bfbb4c8ebefb6aee03152af08eb0c68de7 Mon Sep 17 00:00:00 2001 From: HD Moore Date: Thu, 25 Sep 2008 04:42:08 +0000 Subject: [PATCH] Add a nasty error about ruby 1.8.7 for now git-svn-id: file:///home/svn/framework3/trunk@5684 4d416f70-5f16-0410-b530-b9f4589650da --- lib/msf/sanity.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/msf/sanity.rb b/lib/msf/sanity.rb index 5f9109f1cc..3686b6afea 100644 --- a/lib/msf/sanity.rb +++ b/lib/msf/sanity.rb @@ -21,3 +21,13 @@ if (RUBY_VERSION =~ /^1\.[0-7]\./ or RUBY_VERSION =~ /^1\.8\.[0-1]$/) puts "*** This version of ruby is not supported, please upgrade to 1.8.2+" exit(0) end + +if(RUBY_VERSION == "1.8.7") + $stderr.puts "" + $stderr.puts "***********************************************************************" + $stderr.puts "*** This version of the Ruby interpreter has significant problems, we *" + $stderr.puts "*** strongly recommend that you switch to version 1.8.6 until these *" + $stderr.puts "*** issues have been corrected. *" + $stderr.puts "***********************************************************************" + $stderr.puts "" +end