Skip to content

Commit 20bcb80

Browse files
committed
Land rapid7#3723, solves rapid7#3719 msfcli crash
2 parents 58091b9 + 031445f commit 20bcb80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/ui/console/driver.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ def initialize(prompt = DefaultPrompt, prompt_char = DefaultPromptChar, opts = {
248248
on_startup(opts)
249249

250250
# Process any resource scripts
251-
if opts['Resource'].empty?
251+
if opts['Resource'].blank?
252252
# None given, load the default
253253
load_resource(File.join(Msf::Config.config_directory, 'msfconsole.rc'))
254254
else

0 commit comments

Comments
 (0)