Skip to content

Commit 031445f

Browse files
committed
Check for nil resource files
See rapid7#3719
1 parent 58091b9 commit 031445f

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)