Skip to content

Commit

Permalink
debug2
Browse files Browse the repository at this point in the history
  • Loading branch information
PetarKirov committed Feb 9, 2021
1 parent a61c26b commit 1a5373a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
6 changes: 5 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,10 @@ async function run() {
}

async function extract(format: string, archive: string, into?: string) {
if (format.endsWith(".7z"))
if (format.endsWith(".7z")) {
console.log("Extracting archive:", { format, archive, into });
return await tc.extract7z(archive, into);
else if (format.endsWith(".zip"))
} else if (format.endsWith(".zip"))
return await tc.extractZip(archive, into);
else if (/\.tar(\.\w+)?$/.test(format))
return await tc.extractTar(archive, into, 'x');
Expand Down

0 comments on commit 1a5373a

Please sign in to comment.