From 7ab0ac0cf6bdc112b2b0a5a93f464892af66ca8a Mon Sep 17 00:00:00 2001 From: Christoph Klaffl Date: Tue, 25 Jul 2023 22:56:25 +0200 Subject: [PATCH] trim config values --- sanoid | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sanoid b/sanoid index 5150f3b..8848e3b 100755 --- a/sanoid +++ b/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"; $ini{$section}{$key} = $value->[0]; } + # trim + $ini{$section}{$key} =~ s/^\s+|\s+$//g; } if ($section =~ /^template_/) { next; } # don't process templates directly