From 046a369ce43c7a71cacf4e96a663260081e40fa9 Mon Sep 17 00:00:00 2001 From: Brenden Harrell Date: Fri, 1 Oct 2021 09:12:21 -0500 Subject: [PATCH] Another go at proper async ordering --- Platform/Client/httpInterface.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Platform/Client/httpInterface.js b/Platform/Client/httpInterface.js index 3c2d6342c..0411074a2 100644 --- a/Platform/Client/httpInterface.js +++ b/Platform/Client/httpInterface.js @@ -899,13 +899,12 @@ exports.newHttpInterface = function newHttpInterface() { async function runNodeSetup () { console.log( "Running Node setup to adjust for new Branch" ) - const path = require("path"); const process = require("process"); - const { exec } = require("child_process"); + const { execSync } = require("child_process"); let dir = process.cwd() let command = "node setup"; - exec( command, + execSync( command, { cwd: dir },