mirror of https://github.com/digint/btrbk
btrbk: accept quoted values in config
parent
5d94de9142
commit
d7f6d5fecf
2
btrbk
2
btrbk
|
@ -4463,6 +4463,8 @@ sub parse_config($)
|
||||||
{
|
{
|
||||||
# NOTE: we do not perform checks on indentation!
|
# NOTE: we do not perform checks on indentation!
|
||||||
my ($indent, $key, $value) = (length($1), lc($2), $4 // "");
|
my ($indent, $key, $value) = (length($1), lc($2), $4 // "");
|
||||||
|
$value =~ s/^"(.*)"$/$1/;
|
||||||
|
$value =~ s/^'(.*)'$/$1/;
|
||||||
$cur = parse_config_line($file, $root, $cur, $key, $value);
|
$cur = parse_config_line($file, $root, $cur, $key, $value);
|
||||||
unless(defined($cur)) {
|
unless(defined($cur)) {
|
||||||
# error, bail out
|
# error, bail out
|
||||||
|
|
Loading…
Reference in New Issue