fix var type problem
git-svn-id: file:///home/svn/framework3/trunk@12858 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
68d8a68a36
commit
de931d51f0
|
@ -14,7 +14,7 @@ wininfo = client.sys.config.sysinfo
|
|||
"-rc" => [ true,"Text file with list of commands, one per line."]
|
||||
)
|
||||
#Setting Argument variables
|
||||
commands = nil
|
||||
commands = []
|
||||
script = nil
|
||||
outfile = nil
|
||||
help = 0
|
||||
|
@ -77,7 +77,6 @@ end
|
|||
if not ::File.exists?(script)
|
||||
raise "Command List File does not exists!"
|
||||
else
|
||||
commands ||= ''
|
||||
::File.open(script, "r").each_line do |line|
|
||||
commands << line.chomp
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue