bin/ronin-db in ronin-db-0.1.0-java vs bin/ronin-db in ronin-db-0.1.1
- old
+ new
@@ -1,6 +1,7 @@
#!/usr/bin/env ruby
+# frozen_string_literal: true
#
# Copyright (c) 2021 Hal Brodigan (postmodern.mod3 at gmail.com)
#
# This file is part of ronin-repos.
#
@@ -19,16 +20,14 @@
#
root = File.expand_path(File.join(__dir__,'..'))
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/db/cli'
Ronin::DB::CLI.start