summaryrefslogtreecommitdiff
path: root/lua/nvim-treesitter/shell_command_selectors.lua
diff options
context:
space:
mode:
authorLaurence Tratt <laurie@tratt.net>2021-07-19 19:12:01 +0100
committerStephan Seitz <stephan.lauf@yahoo.de>2021-07-19 21:51:33 +0200
commit968ce80c99028d2e5a59c0e8ff69b8102b82a100 (patch)
tree8dba28cce8ea9c4c9e39809a9d37817a77924195 /lua/nvim-treesitter/shell_command_selectors.lua
parentf12790c5d776f8aec1b1c766951ed419c933fd9b (diff)
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.
Diffstat (limited to 'lua/nvim-treesitter/shell_command_selectors.lua')
-rw-r--r--lua/nvim-treesitter/shell_command_selectors.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/nvim-treesitter/shell_command_selectors.lua b/lua/nvim-treesitter/shell_command_selectors.lua
index 4a51ca9e..d2a603c8 100644
--- a/lua/nvim-treesitter/shell_command_selectors.lua
+++ b/lua/nvim-treesitter/shell_command_selectors.lua
@@ -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",