bin/ronin-exploits in ronin-exploits-1.0.0 vs bin/ronin-exploits in ronin-exploits-1.0.1
- old
+ new
@@ -1,18 +1,17 @@
#!/usr/bin/env ruby
+# frozen_string_literal: true
require 'rubygems'
root = File.expand_path(File.join(File.dirname(__FILE__),'..'))
if File.file?(File.join(root,'Gemfile.lock'))
Dir.chdir(root) do
- begin
- require 'bundler/setup'
- rescue LoadError => e
- warn e.message
- warn "Run `gem install bundler` to install Bundler"
- exit -1
- end
+ require 'bundler/setup'
+ rescue LoadError => e
+ warn e.message
+ warn "Run `gem install bundler` to install Bundler"
+ exit(-1)
end
end
require 'ronin/exploits/cli'
Ronin::Exploits::CLI.start