Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Commit

Permalink
[2.0.18] Hotfix: Fix build output
Browse files Browse the repository at this point in the history
  • Loading branch information
Akkadius committed Mar 13, 2022
1 parent e6303e7 commit bef4beb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/routes/api/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,10 @@ router.post('/code/build', async function (req, res, next) {
const codePath = config.getAdminPanelConfig('serverCodePath', '/home/eqemu/code/')
const buildCores = parseInt(require('os').cpus().length / 2).toString();
const command = util.format(
'cd %s && make -j%s || ninja -j%s > %s &',
'cd %s && bash -c \'make -j%s > %s || ninja -j%s > %s\' &',
path.join(codePath, 'build'),
buildCores,
TEMP_BUILD_OUTPUT_PATH,
buildCores,
TEMP_BUILD_OUTPUT_PATH
);
Expand Down

0 comments on commit bef4beb

Please sign in to comment.