Skip to content

Commit 7bf710a

Browse files
committed
Read arguments through argv instead of env
1 parent 4d3df86 commit 7bf710a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/controllers/tracers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ const trace = lang => (req, res, next) => {
1919
const { code } = req.body;
2020
const tempPath = getCodesPath(uuid.v4());
2121
fs.outputFile(path.resolve(tempPath, `Main.${lang}`), code)
22-
.then(() => execute(`LANG=${lang} TEMP_PATH=${tempPath} ./bin/compile`, repoPath, { stdout: null, stderr: null }))
23-
.then(() => execute(`LANG=${lang} TEMP_PATH=${tempPath} ./bin/run`, repoPath, { stdout: null, stderr: null }))
22+
.then(() => execute(`./bin/compile ${lang} ${tempPath}`, repoPath, { stdout: null, stderr: null }))
23+
.then(() => execute(`./bin/run ${lang} ${tempPath}`, repoPath, { stdout: null, stderr: null }))
2424
.then(() => res.sendFile(path.resolve(tempPath, 'traces.json')))
2525
.catch(next)
2626
.finally(() => fs.remove(tempPath));

0 commit comments

Comments
 (0)