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 9279534 commit 3d2143f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/evaluation.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ module.exports = async function encoder() {

const gzip_encoder_path = `${cwd}/ioncube_encoder.tar.gz`

if (!fs.existsSync(ioncube_folder)) {
if (!fs.existsSync(folder)) {
await download(downloadUrl, gzip_encoder_path)

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

let myOutput = ''
Expand Down

0 comments on commit 3d2143f

Please sign in to comment.