meshctrl deviceinfo error on unescaped nodeid

Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
si458 2024-05-23 20:59:33 +01:00
parent 7e7361de9b
commit 7cf14a2b69

View File

@ -2755,7 +2755,7 @@ function displayDeviceInfo(sysinfo, lastconnect, network, nodes) {
}
}
}
if (node == null) {
if ((sysinfo == null && lastconnect == null && network == null) || (node == null)) {
console.log("Invalid device id");
process.exit(); return;
}