to re-use a line here and with the next patch.
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
foreach my $path (split(/\0/, $v || '')) {
$cmd .= " --$p " . PVE::Tools::shellquote($path);
}
- } elsif ($p eq 'prune-backups') {
- my $property_string = PVE::JSONSchema::print_property_string($v, 'prune-backups');
- $cmd .= " --$p " . PVE::Tools::shellquote($property_string)
- if defined($property_string) && $property_string ne '';
} else {
+ $v = PVE::JSONSchema::print_property_string($v, 'prune-backups')
+ if $p eq 'prune-backups';
+
$cmd .= " --$p " . PVE::Tools::shellquote($v) if defined($v) && $v ne '';
}
}