mirror of https://github.com/jimsalterjrs/sanoid
Merge pull request #837 from phreaker0/trim-config-values
trim config values
This commit is contained in:
commit
61000c9da2
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