mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-11-12 11:52:01 +01:00
fix VAR=VAL loading from config
This commit is contained in:
parent
dbbe6a831a
commit
b1efd4e749
@ -165,7 +165,12 @@ protected
|
||||
# Is it a VAR=VAL?
|
||||
elsif (md = line.match(/^(.+?)=(.*)$/))
|
||||
if (active_group)
|
||||
self[active_group][md[1]] = md[2]
|
||||
var, val = md[1], md[2]
|
||||
|
||||
# don't clobber datastore nils with ""
|
||||
unless val.empty?
|
||||
self[active_group][var] = val
|
||||
end
|
||||
end
|
||||
end
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user