Skip to content

Commit

Permalink
extracting downloaded encoder correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
MuriloChianfa committed Sep 4, 2024
1 parent 7aca951 commit 7bcffa5
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion badges/coverage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.

6 changes: 5 additions & 1 deletion src/evaluation.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ module.exports = async function encoder() {
if (!fs.existsSync(folder)) {
await download(downloadUrl, gzip_encoder_path)

if (!fs.existsSync(folder)) {
fs.mkdirSync(folder, { recursive: true })
}

let myOutput = ''
let myError = ''

Expand All @@ -68,7 +72,7 @@ module.exports = async function encoder() {
options.failOnStdErr = false
options.ignoreReturnCode = false
await exec.exec(
`mkdir ${folder} && tar -xzvf ${gzip_encoder_path} -C ${folder} --strip-components=1`,
`tar -xzvf ${gzip_encoder_path} -C ${folder} --strip-components=1`,
[],
options
)
Expand Down

0 comments on commit 7bcffa5

Please sign in to comment.