Merge pull request #2986 from TheGuy920/master
Update Ruby Version - Complete
This commit is contained in:
@@ -21,9 +21,9 @@ Or cloning the Git repository from Github:
|
||||
Prerequisites
|
||||
--------------
|
||||
|
||||
BeEF requires Ruby 2.7+.
|
||||
BeEF requires Ruby 3.0+.
|
||||
|
||||
If your operating system package manager does not support Ruby version 2.7,
|
||||
If your operating system package manager does not support Ruby version 3.0,
|
||||
you can add the brightbox ppa repository for the latest version of Ruby:
|
||||
|
||||
$ sudo apt-add-repository -y ppa:brightbox/ruby-ng
|
||||
|
||||
4
beef
4
beef
@@ -12,9 +12,9 @@
|
||||
$VERBOSE = nil
|
||||
|
||||
#
|
||||
# @note Version check to ensure BeEF is running Ruby 2.7+
|
||||
# @note Version check to ensure BeEF is running Ruby 3.0+
|
||||
#
|
||||
min_ruby_version = '2.7'
|
||||
min_ruby_version = '3.0'
|
||||
if RUBY_VERSION < min_ruby_version
|
||||
puts
|
||||
puts "Ruby version #{RUBY_VERSION} is no longer supported. Please upgrade to Ruby version #{min_ruby_version} or later."
|
||||
|
||||
Reference in New Issue
Block a user