Add array support to the simple generate script (doesn't work with spaces)

This commit is contained in:
Matthias Schiffer 2014-01-21 02:55:02 +01:00
parent e10370bd83
commit 58584018de

View File

@ -12,6 +12,9 @@ sub add_config {
if (ref($val) eq 'HASH') {
add_config($key . '.', $val);
}
elsif (ref($val) eq 'ARRAY') {
$config{'@' . $prefix . $key . '@'} = join ' ', @{$val};
}
unless (ref($val)) {
$config{'@' . $prefix . $key . '@'} = $val;
}