Merge pull request #12159 from bayandin/fix-tar.zst-extraction

unpack_strategy/tar: fix zst subextraction
This commit is contained in:
Mike McQuaid 2021-10-01 13:05:51 +01:00 committed by GitHub
commit 1e34dad7ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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