small fix
git-svn-id: file:///home/svn/framework3/trunk@10340 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
99e2218d13
commit
1cb4d17df7
|
@ -9,7 +9,7 @@ require 'fileutils'
|
|||
pid = nil
|
||||
name = nil
|
||||
toggle = nil
|
||||
resource = ""
|
||||
resource = nil
|
||||
opts = Rex::Parser::Arguments.new(
|
||||
"-h" => [ false, "Help menu." ],
|
||||
"-p" => [ true, "PID of process to dump."],
|
||||
|
@ -35,6 +35,7 @@ opts.parse(args) { |opt, idx, val|
|
|||
toggle = true
|
||||
when "-r"
|
||||
list = val
|
||||
resource = ""
|
||||
if not ::File.exists?(list)
|
||||
raise "Command List File does not exists!"
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue