Changeset 5498

Show
Ignore:
Timestamp:
04/26/08 13:28:41 (3 weeks ago)
Author:
egypt
Message:

allow comments in resource files.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • framework3/trunk/lib/msf/ui/console/driver.rb

    r5304 r5498  
    179179                rcfd = File.open(path, 'r') 
    180180                rcfd.each_line do |line| 
    181                         print_line("resource> #{line.strip}") 
    182                         run_single(line.strip) 
     181                        line.strip! 
     182                        next if line.length == 0 
     183                        next if line =~ /^#/ 
     184                        print_line("resource> #{line}") 
     185                        run_single(line) 
    183186                end 
    184187                rcfd.close 
  • framework3/trunk/lib/msf/ui/gtk2/app.rb

    r5491 r5498  
    202202                         
    203203                        data.each_line do |line| 
    204                                 line.strip 
     204                                line.strip! 
    205205                                next if line.length == 0 
    206206                                next if line =~ /^#/