From 21e8c982d13551f8a5d9989cbf619355b5df72e2 Mon Sep 17 00:00:00 2001 From: OatmealDome Date: Sat, 29 Jun 2024 22:40:24 -0400 Subject: [PATCH] scmrev2 --- Source/Core/Common/make_scmrev.h.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/Core/Common/make_scmrev.h.js b/Source/Core/Common/make_scmrev.h.js index 273dad30f4..b2ff644ecc 100644 --- a/Source/Core/Common/make_scmrev.h.js +++ b/Source/Core/Common/make_scmrev.h.js @@ -64,7 +64,12 @@ function AttemptToExecuteCommand(cmd) { try { - return wshShell.Exec(cmd).ExitCode; + var exec = wshShell.Exec(cmd) + + // wait until the command has finished + while (exec.Status == 0) {} + + return exec.ExitCode; } catch (e) {