unpack_strategy/tar: fix zst subextraction

This commit is contained in:
Alexander Bayandin 2021-09-30 23:00:12 +01:00
parent 9b42a104ee
commit e74f996b02
No known key found for this signature in database
GPG Key ID: 444BD9CA93262701

View File

@ -30,7 +30,7 @@ module UnpackStrategy
FileUtils.cp path, unpack_dir/basename, preserve: true
quiet_flags = verbose ? [] : ["-q"]
system_command! "unzstd",
args: [*quiet_flags, "-T0", "--", unpack_dir/basename],
args: [*quiet_flags, "-T0", "--rm", "--", unpack_dir/basename],
env: { "PATH" => PATH.new(Formula["zstd"].opt_bin, ENV["PATH"]) },
verbose: verbose
end