Fixed missing module installation.

This commit is contained in:
Ylian Saint-Hilaire 2019-05-03 13:57:52 -07:00
parent 2ea763ea83
commit dfdded4c3b
2 changed files with 3 additions and 2 deletions

View File

@ -1643,7 +1643,7 @@ function InstallModules(modules, func) {
try {
var xxmodule = require(modules[i]);
} catch (e) {
if (previouslyInstalledModules[modules[i]] !== true) { previouslyInstalledModules[modules[i]] = true; missingModules.push(modules[i]); }
if (previouslyInstalledModules[modules[i]] !== true) { missingModules.push(modules[i]); }
}
}
if (missingModules.length > 0) { InstallModule(missingModules.shift(), InstallModules, modules, func); } else { func(); }
@ -1668,6 +1668,7 @@ function InstallModule(modulename, func, tag1, tag2) {
process.exit();
return;
}
previouslyInstalledModules[modulename] = true;
func(tag1, tag2);
return;
});

View File

@ -1,6 +1,6 @@
{
"name": "meshcentral",
"version": "0.3.3-q",
"version": "0.3.3-r",
"keywords": [
"Remote Management",
"Intel AMT",