mirror of https://github.com/jimsalterjrs/sanoid
trim config values
This commit is contained in:
parent
91a960ffc5
commit
7ab0ac0cf6
2
sanoid
2
sanoid
|
|
@ -905,6 +905,8 @@ sub init {
|
||||||
warn "duplicate key '$key' in section '$section', using the value from the first occurence and ignoring the others.\n";
|
warn "duplicate key '$key' in section '$section', using the value from the first occurence and ignoring the others.\n";
|
||||||
$ini{$section}{$key} = $value->[0];
|
$ini{$section}{$key} = $value->[0];
|
||||||
}
|
}
|
||||||
|
# trim
|
||||||
|
$ini{$section}{$key} =~ s/^\s+|\s+$//g;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($section =~ /^template_/) { next; } # don't process templates directly
|
if ($section =~ /^template_/) { next; } # don't process templates directly
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue