Add -z switch to tar.

Some versions of tar automatically infer `-z` if a `.gz` (or other compressed
extension) file is passed -- but some, including OpenBSD's, don't do this and
require an explicit `-z`. As far as I know, any version of tar which
automatically unzips files supports `-z` so this should be a backwards
compatible change for most versions of tar.
This commit is contained in:
Laurence Tratt 2021-07-19 19:12:01 +01:00 committed by Stephan Seitz
parent f12790c5d7
commit 968ce80c99

View file

@ -158,7 +158,7 @@ function M.select_download_commands(repo, project_name, cache_folder, revision)
err = "Error during tarball extraction.",
opts = {
args = {
"-xvf",
"-xvfz",
project_name .. ".tar.gz",
"-C",
project_name .. "-tmp",