From 0489e2d5710ececaaf4bf786ca32a19d26f5735d Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Mon, 18 Jul 2022 23:02:39 -0700 Subject: [PATCH] Fixed single quote replacement in meshcmd.js. --- agents/meshcmd.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agents/meshcmd.js b/agents/meshcmd.js index 6068c5ce..32ada363 100644 --- a/agents/meshcmd.js +++ b/agents/meshcmd.js @@ -707,7 +707,7 @@ function run(argv) { // Start Intel AMT configuration if ((settings.url == null) || (typeof settings.url != 'string') || (settings.url == '')) { console.log('No MeshCentral server URL specified, use --url [url].'); exit(1); return; } if ((settings.id == null) || (typeof settings.id != 'string') || (settings.id == '')) { console.log('No device group identifier specified, use --id [identifier].'); exit(1); return; } - settings.id = settings.id.replace('\'', ''); // Remove single quote. + settings.id = settings.id.split('\'').join(''); // Remove single quotes. debug(1, "Settings: " + JSON.stringify(settings)); configureAmt(); } else if (settings.action == 'amtccm') {