From 12101c26ab46aa6fd0602309def3b7ed0902c3a3 Mon Sep 17 00:00:00 2001 From: Bryan Roe Date: Sun, 29 Aug 2021 10:39:03 -0700 Subject: [PATCH] Updated '-info' to not hang if architecture can't be determined --- meshconsole/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshconsole/main.c b/meshconsole/main.c index da8ece2..dd564ca 100644 --- a/meshconsole/main.c +++ b/meshconsole/main.c @@ -242,7 +242,7 @@ char* crashMemory = ILib_POSIX_InstallCrashHandler(argv[0]); #endif printf("Agent ARCHID: %d\n", MESH_AGENTID); - char script[] = "console.log('Detected OS: ' + require('os').Name + ' - ' + require('os').arch());process.exit();"; + char script[] = "var _tmp = 'Detected OS: ' + require('os').Name; try{_tmp += (' - ' + require('os').arch());}catch(x){}console.log(_tmp);process.exit();"; integratedJavaScript = ILibString_Copy(script, sizeof(script) - 1); integratedJavaScriptLen = (int)sizeof(script) - 1; }