Skip to content

Commit

Permalink
fixing encoder download url env
Browse files Browse the repository at this point in the history
  • Loading branch information
MuriloChianfa committed Sep 2, 2024
1 parent e9151db commit f7c4ec4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/index.js

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

4 changes: 2 additions & 2 deletions src/evaluation.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ module.exports = async function evaluation() {
module.exports = async function encoder() {
const cwd = process.cwd()

let downloadUrl = IONCUBE_EVAL_URL
let downloadUrl = process.env.IONCUBE_DOWNLOAD_URL
let path = ENCODER_PATH
let ioncube_folder = `${cwd}/ioncube_encoder`
if (!process.env.IONCUBE_DOWNLOAD_URL) {
downloadUrl = process.env.IONCUBE_DOWNLOAD_URL
downloadUrl = process.env.IONCUBE_EVAL_URL
path = EVALUATION_PATH
ioncube_folder = `${cwd}/ioncube_encoder_evaluation`
}
Expand Down

0 comments on commit f7c4ec4

Please sign in to comment.