]> git.proxmox.com Git - dab.git/commitdiff
zstd: remove original archive after compression like gz
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 21 Oct 2022 11:41:59 +0000 (13:41 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 21 Oct 2022 11:42:05 +0000 (13:42 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
DAB.pm

diff --git a/DAB.pm b/DAB.pm
index 2b84c89b4161fd77dfb00083c9aad9621d874bcf..57ea2ecfb3df4ba97b9ad91c18abb9e32855ae51 100644 (file)
--- a/DAB.pm
+++ b/DAB.pm
@@ -869,9 +869,9 @@ sub finalize {
     my $compressor2cmd_map = {
        gz => 'gzip',
        gzip => 'gzip',
-       zst => 'zstd -9',
-       zstd => 'zstd -9',
-       'zstd-max' => 'zstd -19 -T0', # maximal level where the decompressor can still run efficiently
+       zst => 'zstd --rm -9',
+       zstd => 'zstd --rm -9',
+       'zstd-max' => 'zstd --rm -19 -T0', # maximal level where the decompressor can still run efficiently
     };
     my $compressor2ending = {
        gzip => 'gz',