aboutsummaryrefslogtreecommitdiff
path: root/bundle.lua
diff options
context:
space:
mode:
Diffstat (limited to 'bundle.lua')
-rw-r--r--bundle.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/bundle.lua b/bundle.lua
index 3ab6016a8..0802ba2c8 100644
--- a/bundle.lua
+++ b/bundle.lua
@@ -58,6 +58,16 @@ local function _zip(zip_path, ...)
end
print("7z not found")
+ import("detect.tools.find_zip")
+ cmd = find_zip()
+ if cmd then
+ local ret = _exec("zip", "--junk-paths", zip_path, ...)
+ if ret > 0 then
+ raise("Received error from zip")
+ end
+ return
+ end
+ print("zip not found")
raise("Unable to find a suitable zip tool")
end