From bef4beb2080d3fe690e74984be4e844d7180abfd Mon Sep 17 00:00:00 2001 From: Akkadius Date: Sat, 12 Mar 2022 19:50:41 -0600 Subject: [PATCH] [2.0.18] Hotfix: Fix build output --- app/routes/api/admin.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/routes/api/admin.js b/app/routes/api/admin.js index 8ff62db..99f7df6 100644 --- a/app/routes/api/admin.js +++ b/app/routes/api/admin.js @@ -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 );