diff --git a/scripts/meterpreter/multicommand.rb b/scripts/meterpreter/multicommand.rb index cee466e312a7..dc105c04967a 100644 --- a/scripts/meterpreter/multicommand.rb +++ b/scripts/meterpreter/multicommand.rb @@ -14,7 +14,7 @@ "-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 @@ def usage 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