Land #7121, Don't clobber nil strings when there are empty strings in the config file

bug/bundler_fix
Brent Cook 2016-07-29 15:49:11 -05:00
commit 8bda3c6382
No known key found for this signature in database
GPG Key ID: 1FFAA0B24B708F96
1 changed files with 6 additions and 1 deletions

View File

@ -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
}