mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-11-30 14:25:36 +08:00
add switches to silence 7-zip header during extraction
This commit is contained in:
parent
16d6ad1c31
commit
0133ffa52e
@ -355,9 +355,9 @@ for _, dep in pairs(deps_to_extract) do
|
|||||||
local ext = string.lower(string.sub(archive_file, -7)) -- ".tar.gz"
|
local ext = string.lower(string.sub(archive_file, -7)) -- ".tar.gz"
|
||||||
local ok_cmd = false
|
local ok_cmd = false
|
||||||
if ext == ".tar.gz" then
|
if ext == ".tar.gz" then
|
||||||
ok_cmd = os.execute(extractor .. ' x "' .. archive_file .. '" -so | "' .. extractor .. '" x -si -ttar -y -aoa -o"' .. out_folder .. '"')
|
ok_cmd = os.execute(extractor .. ' -bso0 -bse2 x "' .. archive_file .. '" -so | "' .. extractor .. '" -bso0 -bse2 x -si -ttar -y -aoa -o"' .. out_folder .. '"')
|
||||||
else
|
else
|
||||||
ok_cmd = os.execute(extractor .. ' x "' .. archive_file .. '" -y -aoa -o"' .. out_folder .. '"')
|
ok_cmd = os.execute(extractor .. ' -bso0 -bse2 x "' .. archive_file .. '" -y -aoa -o"' .. out_folder .. '"')
|
||||||
end
|
end
|
||||||
if not ok_cmd then
|
if not ok_cmd then
|
||||||
error('extraction failed')
|
error('extraction failed')
|
||||||
|
Loading…
Reference in New Issue
Block a user