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 a23239a commit 3516ff2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 13 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.
8 changes: 2 additions & 6 deletions 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: 1 addition & 5 deletions src/evaluation.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@ module.exports = async function encoder() {
fs.mkdirSync(ioncube_folder, { recursive: true })
}

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

let myOutput = ''
let myError = ''

Expand All @@ -74,7 +70,7 @@ module.exports = async function encoder() {
options.failOnStdErr = false
options.ignoreReturnCode = false
await exec.exec(
`tar -xzvf ioncube_encoder.tar.gz -C ${ioncube_folder} --strip-components=1`,
`tar -xzvf ${gzip_encoder_path} -C ${ioncube_folder} --strip-components=1`,
[],
options
)
Expand Down

0 comments on commit 3516ff2

Please sign in to comment.