Fix untar (#42)

small fix - untar_stream is supposed to be getting the handle, not the filename
This commit is contained in:
Kan18 2020-08-03 22:00:11 -04:00 committed by GitHub
parent 48f32946ec
commit f4494d6103
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ local function untar(filename, destdir, verbose)
local tar_handle = io.open(filename, "rb")
if not tar_handle then return nil, "Error opening file "..filename end
local ok, err = untar_stream(filename, destdir, verbose)
local ok, err = untar_stream(tar_handle, destdir, verbose)
tar_handle:close()
return ok, err