small fix

git-svn-id: file:///home/svn/framework3/trunk@10340 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Carlos Perez 2010-09-16 19:51:35 +00:00
parent 99e2218d13
commit 1cb4d17df7
1 changed files with 2 additions and 1 deletions

View File

@ -9,7 +9,7 @@ require 'fileutils'
pid = nil pid = nil
name = nil name = nil
toggle = nil toggle = nil
resource = "" resource = nil
opts = Rex::Parser::Arguments.new( opts = Rex::Parser::Arguments.new(
"-h" => [ false, "Help menu." ], "-h" => [ false, "Help menu." ],
"-p" => [ true, "PID of process to dump."], "-p" => [ true, "PID of process to dump."],
@ -35,6 +35,7 @@ opts.parse(args) { |opt, idx, val|
toggle = true toggle = true
when "-r" when "-r"
list = val list = val
resource = ""
if not ::File.exists?(list) if not ::File.exists?(list)
raise "Command List File does not exists!" raise "Command List File does not exists!"
else else